CrossLending

Write Methods

crossBorrowERC20

function crossBorrowERC20( uint32 poolId, address asset, uint8[] calldata groups, uint256[] calldata amounts, address onBehalf, address receiver )

Borrow an amount of underlying asset from the pool with cross margin mode.

crossRepayERC20

function crossRepayERC20(
    uint32 poolId,
    address asset,
    uint8[] calldata groups,
    uint256[] calldata amounts,
    address onBehalf
  ) public

Repay an amount of underlying asset into the pool with cross margin mode.

Last updated