Borrowing

Functions

getUserMaxBorrowAmount

function getUserMaxBorrowAmount(
    uint256 pid, 
    uint256 tokenId, 
    uint256 borrowAmount,
    address _user) public view 
returns(
    uint256 _maxBorrowAmount,
    bool _flag)

Get the max borrow amount of a user when the user trying to collateral the NFT

Parameters:

Returns:

v3NFTBorrow

function v3NFTBorrow(
    uint256 pid, 
    uint256 tokenId, 
    uint256 borrowAmount) public

Parameters:

userReturn

Repayment the loan

function userReturn(
    uint256 bid,
    uint256 repayAmount) public

Parameters:

getBorrowPoolIdsOfOwner

Get the pid of a user

function getBorrowPoolIdsOfOwner(
    address owner
) external view returns (uint256[] memory)

Parameters:

getBorrowIdsOfOwnerAndPoolId

Get the borrow id of the owner form pid when user get a loan

function getBorrowIdsOfOwnerAndPoolId(
    address owner,
    uint256 pid
) external view returns (uint256[] memory)

Parameters:

borrowInfo

Get the borrow id info

BorrowInfo[] public borrowInfo;

Parameters:

Returns

Last updated