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

PoolNameRegistryTemplate1 contract

This contract acts as a PNS (Pool Name Service), where pool names can be registered by a pool operator by depositing their LST.

The amount of LST deposited depends on the length of the pool name. For eg, single character names cost more than 2-characters, which cost more than 3-characters, and so on.

A pool operator can create only one pool of each type (InterestPool and UnderwriterPool) for a name.

A pool name can be registered in three ways:

  • Directly on this contract
  • Via the InterestPoolDao, when a pool operator creates an InterestPool
  • Via the UnderwriterPoolDao, when a pool operator creates an UnderwriterPool

When a pool name is deregistered, the operator gets back the LST deposited for that pool.

Dao-only

FunctionParamsDescription
initializeLSTcontract,
currencyDao,
interestPoolDao,
UnderwriterPoolDao,
min_stake
Called only by the ProtocolDao, but initiated by the Deployer. Stores the following information
  • LST Token contract address
  • CurrencyDAO address
  • InterestPoolDAO address
  • UnderwriterPoolDAO address
  • Default / Minimum amount of LST required to register a pool name
register_name_and_poolpool_name,
operator
This is called from a PoolDao when the operator wants to create a Pool, and has not previously registered a pool_name.
register_poolpool_name,
operator
This is called from a PoolDao when the operator wants to create a Pool, and has previously registered a pool_name.
deregister_poolpool_name,
operator
This is called by a PoolDao when the operator of a pool closes that pool.

Dao-only

FunctionParamsDescription
name_existspool_nameReturns True if a given pool_name has been already registered.
register_namepool_nameRegisters a pool name.
deregister_namepool_nameDeregisters a pool name.

Admin-only

FunctionParamsDescription
set_name_registration_minimum_stakemin_stakeCalled only by the ProtocolDao (transaction initiated by the Governor multisig). Set the default / minimum amount of LST required to register a pool name.
set_name_registration_stake_lookupname_length,
stake
Called only by the ProtocolDao (transaction initiated by the Governor multisig). Set the default / minimum amount of LST required to register a pool name.

Escape-hatch

FunctionParamsDescription
pause-Pauses all operations of the contract.
unpause-Resumes all operations of the contract.
escape_hatch_erc20addressTransfers the ERC20 token with the given address to the Escape Hatch Token Holder wallet.
Last updated on 2/14/2020
← ProtocolDAOCurrencyDAO →
  • PoolNameRegistryTemplate1 contract
    • Dao-only
    • Dao-only
    • Admin-only
    • Escape-hatch
Lendroid V2 - Deleuze
Docs
OverviewSmart contractsAPIUI
Community
Project ChatTwitter
More
BlogGitHub
Facebook Open Source
Copyright © 2020 Lendroid Foundation