VaultTracker
Annotated source code of the VaultTracker.sol smart contract
constructor
Parameters:
m
uint256
Maturity timestamp of the new market
c
address
cToken address associated with underlying for the new market
s
address
address of the deployed swivel contract
addNotional
Adds notional to a given address
Parameters:
o
address
Address that owns a vault
a
uint256
Amount of notional added
removeNotional
Removes notional from a given address
Parameters:
o
address
Address that owns a vault
a
uint256
Amount of notional to remove
redeemInterest
Redeem's interest accrued by a given address
Parameters:
o
address
Address that owns a vault
matureVault
Matures the vault
Parameters:
c
uint256
The current cToken exchange rate
transferNotionalFrom
Transfers notional from one address to another
Parameters:
f
address
Owner of the amount
t
address
Recipient of the amount
a
uint256
Amount to transfer
transferNotionalFee
Transfers, in notional, a fee payment to the Swivel contract without recalculating marginal interest for the owner
Parameters:
f
address
Owner of the amount
a
uint256
Amount to transfer
balancesOf
Returns both relevant balances for a given user's vault
Parameters:
o
address
Address that owns a vault
Last updated