Treasury
The Treasury / Vault is the main core contract in Autonomint. All the funds are transferred here, from Borrowing and CDS. External protocol deposits and yields are generated in treasury contract.
Write Functions
deposit
function deposit(
address user,
uint128 ethPrice,
uint64 depositTime,
IBorrowing.AssetName assetName,
uint256 depositingAmount
) payable Param Name
Type
Description
withdraw
function withdraw(
address borrower,
address toAddress,
uint256 amount,
uint64 index ) payableParam Name
Type
Description
withdrawFromExternalProtocol
Param Name
Type
Description
withdrawFromExternalProtocolDuringLiq
Param Name
Type
Description
approveTokens
Param Name
Type
Description
_calculateCumulativeRate
Param Name
Type
Description
depositToIonicByUser
Param Name
Type
Description
depositToAaveByUser
Param Name
Type
Description
depositToCompoundByUser
Param Name
Type
Description
withdrawFromIonicByuser
Param Name
Type
Description
withdrawFromAaveByuser
Param Name
Type
Description
withdrawFromCompoundByuser
Param Name
Type
Description
withdrawFromIonicDuringLiq
Param Name
Type
Description
withdrawInterest
Param Name
Type
Description
transferEthToCdsLiquidators
Param Name
Type
Description
transferFundsToGlobal
Param Name
Type
Description
swapCollateralForUSDT
Param Name
Type
Description
Setter Functions
setExternalProtocolAddresses
Param Name
Type
Description
Read Functions
calculateYieldsForExternalProtocol
Param Name
Type
Description
getBorrowing
Param Name
Type
Description
getTotalDeposited
Param Name
Type
Description
getCumulativeRate
getCurrentCumulativeRate
getExternalProtocolCumulativeRate
Last updated