@aragon/templates-externally-owned-presale-bonding-curve
## Description Aragon externally owned presale and bonding curve template is intended to deploy the bonding curve between ANT and ANJ for Aragon Network Court, along with the presale.
$ cnpm install @aragon/templates-externally-owned-presale-bonding-curve 
SYNC missed versions from official npm registry.

Aragon externally owned presale and bonding curve template

Description

Aragon externally owned presale and bonding curve template is intended to deploy the bonding curve between ANT and ANJ for Aragon Network Court, along with the presale.

This pseudo-DAO has no core apps Voting, Finance or Vault, only a Token Manager for the bonded token, and it's supposed to be controlled externally (by the Aragon Network DAO in the case of ANJ), so all governing permissions are set to an external single entity (which in case of ANJ will be the Agent of the Aragon Network DAO).

Because the purpose isn't either a real fundraising campaign, but only exchange functionality given by the bonding curve, it doesn't have a Tap mechanism either.

The presale used is the simple version, that when close redirects part of the balance of the collateral token to a beneficiary in order to adjust its price to the one that the bonding curve will have given the toal supply of bonded tokens minted and the defined reserve ratio.

Usage

Install fundraising apps

template.installFundraisingApps(
    owner,
    id,
    collateralToken,
    bondedToken,
    period,
    exchangeRate,
    openDate,
    reserveRatio,
    batchBlocks,
    slippage
)
  • owner Owner that will control the pseudo-DAO
  • id Id for org, will assign [id].aragonid.eth
  • collateralToken Collateral token in bonding curve and presale
  • bondedToken Bonded token in bonding curve and presale
  • period The presale period
  • exchangeRate The presale exchange rate [in PPM]
  • openDate The date upon which the presale will be open [if 0, the presale can be open manually later]
  • reserveRatio Reserve ratio of the bonding curve
  • batchBlocks The number of blocks trading batches will last
  • slippage To set up the maximum per-batch price slippage in the market maker

Permissions

System

Handle apps and permissions

App Permission Grantee Manager
Kernel APP_MANAGER Owner Owner
ACL CREATE_PERMISSIONS Owner Owner
Token Manager MINT MarketMaker Owner
Token Manager MINT Presale Owner
Token Manager BURN MarketMaker Owner

Fundraising apps

Agent / Reserve

Handle market maker funds

App Permission Grantee Manager
Reserve SAFE_EXECUTE Owner Owner
Reserve ADD_PROTECTED_TOKEN Controller Owner
Reserve REMOVE_PROTECTED_TOKEN NULL NULL
Reserve EXECUTE NULL NULL
Reserve DESIGNATE_SIGNER NULL NULL
Reserve ADD_PRESIGNED_HASH NULL NULL
Reserve RUN_SCRIPT NULL NULL
Reserve TRANSFER MarketMaker Owner

Presale

Handle preliminary sale

App Permission Grantee Manager
Presale OPEN Controller Owner
Presale REDUCE_BENEFICIARY_PCT Owner Owner
Presale CONTRIBUTE Any Owner

MarketMaker

Handle buy and sell orders

App Permission Grantee Manager
MarketMaker OPEN Controller Owner
MarketMaker UPDATE_FORMULA NULL NULL
MarketMaker UPDATE_BENEFICIARY Controller Owner
MarketMaker UPDATE_FEES Controller Owner
MarketMaker ADD_COLLATERAL_TOKEN Controller Owner
MarketMaker REMOVE_COLLATERAL_TOKEN Controller Owner
MarketMaker UPDATE_COLLATERAL_TOKEN Controller Owner
MarketMaker OPEN_BUY_ORDER Controller Owner
MarketMaker OPEN_SELL_ORDER Controller Owner

Controller

API contract forwarding transactions to relevant contracts

App Permission Grantee Manager
Controller UPDATE_BENEFICIARY Owner Owner
Controller UPDATE_FEES Owner Owner
Controller ADD_COLLATERAL_TOKEN Owner Owner
Controller REMOVE_COLLATERAL_TOKEN Owner Owner
Controller UPDATE_COLLATERAL_TOKEN Owner Owner
Controller UPDATE_MAXIMUM_TAP_RATE_INCREASE_PCT NULL NULL
Controller UPDATE_MAXIMUM_TAP_FLOOR_DECREASE_PCT NULL NULL
Controller ADD_TOKEN_TAP NULL NULL
Controller UPDATE_TOKEN_TAP NULL NULL
Controller OPEN_PRESALE Owner Owner
Controller OPEN_TRADING Presale Owner
Controller CONTRIBUTE Any Owner
Controller OPEN_BUY_ORDER Any Owner
Controller OPEN_SELL_ORDER Any Owner
Controller WITHDRAW NULL NULL

Current Tags

  • 1.1.0                                ...           latest (10 months ago)

6 Versions

  • 1.1.0                                ...           10 months ago
  • 0.2.2                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 0.2.1                                ...           10 months ago
  • 0.2.0                                ...           10 months ago
  • 0.1.0                                ...           10 months ago

Copyright 2014 - 2016 © taobao.org |