Skip to content

Protocol Buildout #6

@jpthor

Description

@jpthor

Phase 1

Swaps

  1. Deploy Pools contract
  2. Owner inits two pools with D balance, and min asset balance
  3. PoolLP provides balances, LP created
  4. Swapper can stream 1-direction swap1
  5. Swapper can stream 1-direction swap2
  6. Swapper can stream opposite-direction swap3
  7. Keeper bot can stream queue
  8. Swapper can cancel streaming swap
  9. Fees are collected on transferOut and placed to one side
  10. Keeper bot fees are collected, and placed to one side
  11. Keeper bot can claim fees
  12. PoolLP can remove all liquidity (fees should remain)

Orders

  1. User can make price-conditional order, which is immediately valid
  2. User can make price-conditional order, which goes to pending
  3. User can cancel price-conditional order

Pool Queue

  1. Add Liquidity causes ASSET->D pool processing
  2. Remove Liquidity causes D -> ASSET pool processing
  3. Keeper bot can process pool

DECAPOOL

  1. GlobalLP can deposit into DECAPOOL
  2. GlobalLP can withdraw from DECAPOOL
  3. Update Pool Processing on Actions

System Income

  1. Stream fees accrue to one side in USDC
  2. Any LP can collect fees to Income contract, distributes 50:50 to DECAPOOL and Pool
  3. Any LP can claim fee-share

Phase 2

DECADAO

  1. Owner creates third pool, 1bn DECA
  2. DAO member buys 30% and stakes in DAO
  3. DAO Member claims 10% of System Income Fee Share

DECAMINT

  1. Owner buys 30% and locks in RESERVE
  2. Owner specifies reward stream, sets weights per pool
  3. LPs can collect DECA from RESERVE to INCOME,
  4. LPs can claim fees

Phase 3

Lending

  1. Borrower can deposit collateral, mint Synth Collateral and Synth Units
  2. Pool Charges interest based on Utilisation
  3. Max 33% Cap
  4. Borrower mints D and streams to Debt
  5. Borrower can be liquidated
  6. Borrower repays to get back collateral
  7. Update Pool Queue

Phase 4

Governance

  1. DAO can vote for pool reward weights
  2. DAO can vote for any system parameter change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions