Lender
Lender Structures
These structures are not stored in the storage; they are used as interfaces to send data to functions related to lenders.
SupplyData Struct
This struct represents the supply data sent as an argument in the SupplyAction
(link pending)
Definition
struct SupplyData {
address token;
uint256 amount;
address market;
address onBehalf;
}
Fields
token
: The address of the token being supplied.amount
: The quantity of assets being supplied.market
: The market or protocol where the supply action is taking place.onBehalf
: The address on behalf of which the supply is executed.
BorrowData Struct
This struct represents the borrow data sent as an argument in the BorrowAction
(link pending)
Definition
struct BorrowData {
address market;
address token;
uint256 amount;
uint256 rateMode;
address to;
}
Fields
market
: The market or protocol where the borrow action is taking place.token
: The address of the token being borrowed.amount
: The quantity of assets being borrowed.rateMode
: The rate mode of the loan, indicating whether it is a fixed or variable-rate loan.to
: The address to which the borrowed assets will be transferred..
PaybackData Struct
This struct represents the repayment data sent as an argument in theRepayAction
(link pending)
Definition
struct PaybackData {
uint256 loanId;
address market;
address token;
uint256 rateMode;
uint256 amount;
}
Fields
loanId
: A unique identifier for the loan within the protocol.market
: The market or protocol where the repay action is taking place.token
: The address of the token being repaid.rateMode
: The rate mode of the loan, indicating whether it is a fixed or variable-rate loan.amount
: The quantity of assets being repayed.
WithdrawData Struct
This struct represents the withdraw data sent as an argument in the WithdrawAction
(link pending)
Definition
struct WithdrawData {
uint256 loanId;
address market;
address token;
uint256 amount;
address to;
}
Fields
loanId
: A unique identifier for the loan within the protocol.market
: The market or protocol where the withdraw action is taking place.token
: The address of the token being withdrawn.amount
: The quantity of assets being withdrawn.to
: The address to which the withdrawn assets will be transferred..
Last updated