LogoLogo
Swivel v4.0.0
Swivel v4.0.0
  • Litepaper
    • Principal Tokens (PTs)
      • Exiting/Selling PTs
      • Secondary AMM's
    • Yield Tokens (YTs)
      • Exiting/Selling YTs
    • AMM vs. Orderbook
  • Swivel Safety Module (SSM)
    • Staking
    • Withdrawing
  • Swivel Exchange
    • Exchange Functions
      • Simple Fixed Yield Lending
      • Professional Fixed-Yield Lending
      • Purchasing YTs
      • Selling PTs
      • Selling YTs
      • Splitting/Combining Tokens
      • Redeeming Tokens/Interest
    • Maturity
    • Liquidity Incentives
    • Minimums, Rate Limits & Fees
    • Retroactive Distribution
    • How to Claim SWIV Tokens
  • Developers
    • Exchange API
      • GET
        • Get Markets
        • Orderbook
        • Get Order
        • OHCLV (Candles)
        • Get Effective Price (Preview Market Order)
        • Get Order History
        • Get Last Trade Info
      • 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
        • Creator
    • Ubiquitous Language V4
      • Shared Language
      • UI Language
      • Technical Language
      • Compound Language
      • Finance Terms
  • Community & Media
  • Incentives
  • 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
  • Creator
  • Contents
  • Globals
  • Modifiers
  • Functions
  • Events
  1. Developers
  2. Contracts Overview
  3. Contracts

Creator

Annotated source of the Creator.sol smart contract

Creator

Contents

Globals

Note this list contains both internal and external attributes

Var
Type

admin

address

marketPlace

address

Modifiers

authorized

Restricts msg.sender as the only viable caller of a method

Declaration

modifier authorized

Functions

create

Allows the owner to create new markets

Declaration

function create(
uint8 p,
address u,
uint256 m,
address c,
address sw,
string n,
string s,
uint8 d
) external authorized returns
(address, address)

Modifiers:

Modifier

authorized

Args:

Arg
Type
Description

p

uint8

Protocol associated with the new market

u

address

Underlying token associated with the new market

m

uint256

Maturity timestamp of the new market

c

address

Compounding Token address associated with the new market

sw

address

Address of the deployed swivel contract

n

string

Name of the new market zcToken

s

string

Symbol of the new market zcToken

d

uint8

Decimals of the new market zcToken

setAdmin

Sets the admin

Declaration

function setAdmin(
address a
) external authorized returns
(bool)

Modifiers:

Modifier

authorized

Args:

Arg
Type
Description

a

address

Address of a new admin

setMarketPlace

We only allow this to be set once

there is no emit here as it's only done once post deploy by the deploying admin

Declaration

function setMarketPlace(
address m
) external authorized returns
(bool)

Modifiers:

Modifier

authorized

Args:

Arg
Type
Description

m

address

Address of the deployed marketPlace contract

Events

SetAdmin

Emitted on a change of the admin

PreviousVaultTrackerNextUbiquitous Language V4