withdraw

Documentation for eth_defi.one_delta.lending.withdraw function.

withdraw(one_delta_deployment, *, token, atoken, amount, wallet_address)[source]

Withdraw collateral from Aave

Parameters
  • one_delta_deployment (eth_defi.one_delta.deployment.OneDeltaDeployment) – 1delta deployment

  • token (web3.contract.contract.Contract) – collateral token contract proxy

  • atoken (web3.contract.contract.Contract) – aToken contract proxy

  • collateral_amount – amount of collateral to be withdrawn

  • wallet_address (str) – wallet address of the user

  • amount (int) –

Returns

multicall contract function to withdraw collateral

Return type

web3.contract.contract.ContractFunction