LogoLogo
Swivel v2.0.0
Swivel v2.0.0
  • Swivel Finance Documentation
  • Litepaper
    • zcTokens
      • Exiting/Selling zcTokens
      • Secondary AMM's
    • nTokens
      • Exiting/Selling nTokens
    • AMM vs. Orderbook
  • Swivel Exchange
    • Testnet Setup
    • Exchange Functions
      • Fixed-Yield Lending
      • Purchasing nTokens
      • Selling zcTokens
      • Selling nTokens
      • Splitting/Combining Tokens
      • Redeeming Tokens/Interest
    • Maturity
    • Liquidity Incentives
    • Minimums, Rate Limits & Fees
    • Retroactive Distribution
    • How to Claim SWIV Tokens
  • Developers
    • Exchange API
      • GET
        • Orderbook
        • Get Order
        • OHCLV (Candles)
        • Get Effective Price (Preview Market Order)
        • Get Order History
        • Get Last Trade Info
        • Get Markets
      • POST
        • Order
    • Swivel.js
      • API
        • Swivel
        • MarketPlace
        • VaultTracker
    • Swivel.py
      • swivel
        • swivel.abstracts
          • swivel.abstracts.deployed
          • swivel.abstracts.market_place
          • swivel.abstracts.swivel
          • swivel.abstracts.vault_tracker
        • swivel.contracts
          • swivel.contracts.market_place
          • swivel.contracts.swivel
          • swivel.contracts.vault_tracker
        • swivel.vendors
          • swivel.vendors.signer
          • swivel.vendors.w3
    • Scrivel (Python Examples)
    • Contracts Overview
      • Contracts
        • Swivel
        • MarketPlace
        • VaultTracker
    • Ubiquitous Language V2
      • Shared Language
      • UI Language
      • Technical Language
      • Compound Language
      • Finance Terms
  • Community & Media
  • Other Resources
    • Institutions
      • Rate Profile Optimization
        • Instruments and Participants
        • Market Opportunities and Pricing
        • Counterparty Risk Management
        • Benefits and drawbacks of standardization
        • User Needs
          • Corporate Treasury and Funding
          • Institutional Investors and Asset Managers
          • Speculators and Proprietary Trading Functions
          • Brokers and Market Makers
          • Liquidity Management, Funding and Resource Management
          • Risk Management and Insurance
          • Smaller Institutions and Individuals
      • Swivel for Enterprise
        • Overview
        • How Swivel works
        • Flexible Order Book
        • Future Developments
      • Delegated Credit
        • Challenges of Delegated Credit
          • Credit Pools
          • Intermediating Trust in Credit Delegation
Powered by GitBook
On this page
  • Classes
  • Returns
  • Parameters
  • Returns
  • Returns
  • Returns
  • Returns
  • Returns
  • Parameters
  • Returns
  1. Developers
  2. Swivel.py
  3. swivel
  4. swivel.abstracts

swivel.abstracts.vault_tracker

Previousswivel.abstracts.swivelNextswivel.contracts

Last updated 2 years ago

Classes

Class VaultTracker

class VaultTracker

Persists and curates Vault objects associated with users

Note that a Vault is a Dict object in this form:

{ notional, redeemable, exchangerate }

Ancestors

Descendants

Methods

Method admin

def admin(
    self,
    opts=None
)

The stored admin address for this contract

Note that this should always be the MarketPlace address

Returns

web3 callable, opts

Method balances_of

def balances_of(
    self,
    o,
    opts=None
)

Get Vault balances for a given user

Parameters

o (string) Address of the vault owner

Returns

web3 callable, opts

Method c_token_address

def c_token_address(
    self,
    opts=None
)

Adress of the compound token referenced by this vault tracker

Returns

web3 callable, opts

Method maturity

def maturity(
    self,
    opts=None
)

An Epoch (in seconds) representing the time of maturity

Returns

web3 callable, opts

Method maturity_rate

def maturity_rate(
    self,
    opts=None
)

The maturity rate (TODO: better description)

Returns

web3 callable, opts

Method swivel

def swivel(
    self,
    opts=None
)

Address of the associated Swivel contract deployment

Returns

web3 callable, opts

Method vaults

def vaults(
    self,
    o,
    opts=None
)

Get a Vault for a given address

Parameters

o (string) Address of the vault owner

Returns

web3 callable, opts

swivel.abstracts.deployed.Deployed
swivel.contracts.vault_tracker.VaultTracker