VaultTracker
Annotated source code of the VaultTracker.sol smart contract
Annotated source code of the VaultTracker.sol smart contract
Note this list contains both internal and external attributes
Var | Type |
---|---|
Restricts msg.sender as the only viable caller of a method
Declaration
Declaration
Modifiers:
No modifiers
Args:
Adds notional to a given address
Declaration
Modifiers:
Args:
Removes notional from a given address
Declaration
Modifiers:
Args:
Redeem's interest accrued by a given address
Declaration
Modifiers:
Args:
Matures the vault
Declaration
Modifiers:
Args:
Transfers notional from one address to another
Declaration
Modifiers:
Args:
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:
Returns both relevant balances for a given user's vault
Declaration
Modifiers:
No modifiers
Args:
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Type | Description |
---|---|
Arg | Type | Description |
---|---|---|
vaults
mapping(address => struct VaultTracker.Vault)
cTokenAddr
address
marketPlace
address
swivel
address
maturity
uint256
maturityRate
uint256
protocol
uint8
m
uint8
Maturity timestamp associated with this vault
c
uint256
Compounding Token address associated with this vault
s
address
Address of the deployed swivel contract
mp
address
Address of the designated admin, which is the Marketplace addess stored by the Creator contract
authorized
o
address
Address that owns a vault
a
uint256
Amount of notional added
authorized
o
address
Address that owns a vault
a
uint256
Amount of notional to remove
authorized
o
address
Address that owns a vault
authorized
c
uint256
The current cToken exchange rate
authorized
f
address
Owner of the amount
t
address
Recipient of the amount
a
uint256
Amount to transfer
authorized
f
address
Owner of the amount
a
uint256
Amount to transfer
exchangeRate
if maturityRate > 0, exchangeRate, exchangeRate if not.
o
address
Address that owns a vault