Lendroid V2 - Deleuze

Lendroid V2 - Deleuze

  • Docs
  • API
  • UI

›Deep dive

Overview

  • Overview
  • Terminology
  • V2 Contracts
  • V2 Players

Deep dive

  • Deep Dive
  • ERC20Template1
  • LERC20Template1
  • ERC20PoolTokenTemplate1
  • MultiFungibleTokenTemplate1
  • ProtocolDAO
  • PoolNameRegistryTemplate1
  • CurrencyDAO
  • ERC20TokenPoolTemplate1
  • InterestPoolDAO
  • InterestPoolTemplate1
  • UnderwriterPoolDAO
  • UnderwriterPoolTemplate1
  • MarketDAO
  • PositionRegistryTemplate1
  • SimplePriceOracleTemplate1
  • SimpleCollateralAuctionGraph1
  • ShieldPayoutDAO
  • Sequence Diagrams

Examples

  • Library documentation
  • Wallet documentation

Deep Dive

ShieldPayoutDAO contract

This contract plays a role only after a loan market is closed. It’s main purpose is to handle SToken and UToken payouts.

Dao-only

FunctionParamsDescription
initializeLSTcontract,
currencyDao,
marketDao
Called only by the ProtocolDao, but initiated by the Deployer. Stores the following information
  • LST Token contract address
  • CurrencyDao address
  • MarketDao address
register_shield_marketcurrency,
expiry,
underlying,
strike_price
Called only by the MarketDao.

Common

FunctionParamsDescription
exercise_scurrency,
expiry,
underlying,
strike_price,
X
Transfers a payout to the caller in LCurrency for X STokens for the given currency, expiry, underlying, and strike_price. Note: The SToken has to have expired in order for payout to occur.
exercise_ucurrency,
expiry,
underlying,
strike_price,
X
Transfers a payout to the caller in LCurrency for X UTokens for the given currency, expiry, underlying, and strike_price. Note: The UToken has to have expired in order for payout to occur.

Escape-hatch

FunctionParamsDescription
pause-Pauses all operations of the contract.
unpause-Resumes all operations of the contract.
escape_hatch_erc20address,
is_LERC20
Transfers the entire contract balance of ERC20 or LERC20 token with the given address to the Escape Hatch Token Holder wallet.
escape_hatch_mftmft_type,
currency,
expiry,
underlying,
strike_price
Transfers the entire contract balance of the given type of MFT with the ID represented by the given currency, expiry, underlying, and strike_price.
Eg,
  • Inputs for ITokens : I, currency, expiry, ZERO_ADDRESS, 0
  • Inputs for FTokens : F, currency, expiry, ZERO_ADDRESS, 0
  • Inputs for STokens : S, currency, expiry, underlying, strike_price
  • Inputs for UTokens : U, currency, expiry, underlying, strike_price
Last updated on 2/14/2020
← SimpleCollateralAuctionGraph1Sequence Diagrams →
  • ShieldPayoutDAO contract
    • Dao-only
    • Common
    • Escape-hatch
Lendroid V2 - Deleuze
Docs
OverviewSmart contractsAPIUI
Community
Project ChatTwitter
More
BlogGitHub
Facebook Open Source
Copyright © 2020 Lendroid Foundation