Skip to content

UserHelpers ​

Git Source

Inherits:CoreHelpers

Functions ​

constructor ​

solidity
constructor(ConstantViews memory constantViews_) CoreHelpers(constantViews_);

_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 (ExchangePrices memory ex_);

_updatingUserSupplyDataOnStorage ​

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

_updatingUserBorrowDataOnStorage ​

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

_depositOrPaybackInLiquidity ​

Deposits or pays back in liquidity

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

Parameters

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