Skip to content

UserHelpers ​

constructor ​

solidity
constructor(struct Structs.ConstantViews constantViews_) internal

_verifyMint ​

solidity
function _verifyMint(uint256 amt_, uint256 totalAmt_) internal pure

_verifyRedeem ​

solidity
function _verifyRedeem(uint256 amt_, uint256 totalAmt_) internal pure

_getExchangePrices ​

solidity
function _getExchangePrices() internal view returns (struct Structs.ExchangePrices ex_)

_updatingUserSupplyDataOnStorage ​

solidity
function _updatingUserSupplyDataOnStorage(uint256 userSupplyData_, uint256 userSupply_, uint256 newWithdrawalLimit_) internal

_updatingUserBorrowDataOnStorage ​

solidity
function _updatingUserBorrowDataOnStorage(uint256 userBorrowData_, uint256 userBorrow_, uint256 newBorrowLimit_) internal

_depositOrPaybackInLiquidity ​

solidity
function _depositOrPaybackInLiquidity(address token_, uint256 depositAmt_, uint256 paybackAmt_) internal

Deposits or pays back in liquidity

Parameters ​

NameTypeDescription
token_addressThe token to deposit or pay back
depositAmt_uint256The amount to deposit
paybackAmt_uint256The amount to pay back