VaultTracker
Annotated source code of the VaultTracker.sol smart contract
Note this list contains both internal and external attributes
mapping(address => struct VaultTracker.Vault)
Restricts msg.sender as the only viable caller of a method
Declaration
Declaration
Modifiers:
No modifiers
Args:
Maturity timestamp associated with this vault
Compounding Token address associated with this vault
Address of the deployed swivel contract
Address of the designated admin, which is the Marketplace addess stored by the Creator contract
Adds notional to a given address
Declaration
Modifiers:
Args:
Address that owns a vault
Removes notional from a given address
Declaration
Modifiers:
Args:
Address that owns a vault
Amount of notional to remove
Redeem's interest accrued by a given address
Declaration
Modifiers:
Args:
Address that owns a vault
Matures the vault
Declaration
Modifiers:
Args:
The current cToken exchange rate
transferNotionalFrom
Transfers notional from one address to another
Declaration
Modifiers:
Args:
transferNotionalFee
Transfers, in notional, a fee payment to the Swivel contract without recalculating marginal interest for the owner
Declaration
Modifiers:
Args:
Return both the current maturityRate if it's > 0 (or exchangeRate in its place) and the Compounding exchange rate
While it may seem unnecessarily redundant to return the exchangeRate twice, it prevents many kludges that would otherwise be necessary to guard it
Declaration
Modifiers:
No modifiers
Returns:
if maturityRate > 0, exchangeRate, exchangeRate if not.
Returns both relevant balances for a given user's vault
Declaration
Modifiers:
No modifiers
Args:
Address that owns a vault