IsolateLending
Write Methods
isolateBorrow
Borrow an amount of underlying asset from the pool with isolate margin mode.
Parameter Name | Type | Description |
---|---|---|
poolId | uint32 | The id of the pool |
nftAsset | address | The address of the underlying asset to used as collateral |
nftTokenIds | uint256[] | The token id list of the underlying asset to used as collateral |
asset | address | The address of the underlying asset to be borrowed |
amounts | uint256[] | The underlying amount to be borrowed, expressed in underlying asset decimals units |
onBehalfOf | address | address whom will record the balance. Use |
receiver | address | address whom will receive the balance. Use |
isolateRepay
Repay an amount of underlying asset into the pool with isolate margin mode.
Parameter Name | Type | Description |
---|---|---|
poolId | uint32 | The id of the pool |
nftAsset | address | The address of the underlying asset to used as collateral |
nftTokenIds | uint256[] | The token id list of the underlying asset to used as collateral |
asset | address | The address of the underlying asset to be repaid |
amounts | uint256[] | The underlying amount to be repaid, expressed in underlying asset decimals units |
onBehalfOf | address | address whom will record the balance. Use |
Last updated