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