For the complete documentation index, see llms.txt. This page is also available as Markdown.

VaultTracker

Annotated source code of the VaultTracker.sol smart contract

constructor

  function constructor(
    uint256 m,
    address c,
    address s
  ) public

Parameters:

Name
Type
Description

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

  function addNotional(
    address o,
    uint256 a
  ) external returns (bool)

Adds notional to a given address

Parameters:

Name
Type
Description

o

address

Address that owns a vault

a

uint256

Amount of notional added

removeNotional

Removes notional from a given address

Parameters:

Name
Type
Description

o

address

Address that owns a vault

a

uint256

Amount of notional to remove

redeemInterest

Redeem's interest accrued by a given address

Parameters:

Name
Type
Description

o

address

Address that owns a vault

matureVault

Matures the vault

Parameters:

Name
Type
Description

c

uint256

The current cToken exchange rate

transferNotionalFrom

Transfers notional from one address to another

Parameters:

Name
Type
Description

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:

Name
Type
Description

f

address

Owner of the amount

a

uint256

Amount to transfer

balancesOf

Returns both relevant balances for a given user's vault

Parameters:

Name
Type
Description

o

address

Address that owns a vault

Last updated