Yield

yieldBorrowERC20

function yieldBorrowERC20(uint32 poolId, address asset, uint256 amount)

Borrow an amount of underlying asset from the pool. Requires the caller to have been whitelisted and have sufficient debt quota.

Parameter NameTypeDescription

poolId

uint32

The id of the pool

asset

address

The address of the underlying asset to deposit

amount

uint256

The underlying amount to be deposited, expressed in underlying asset decimals units

yieldRepayERC20

function yieldRepayERC20(uint32 poolId, address asset, uint256 amount) public

Repays an amount of underlying asset into the pool.

Parameter NameTypeDescription

poolId

uint32

The id of the pool

asset

address

The address of the underlying asset to deposit

amount

uint256

The underlying amount to be deposited, expressed in underlying asset decimals units

Last updated