Developer Docs
  • Introduction
  • Key Terms
  • Perpetual Swaps
    • vAMM
    • Margin
    • UA
    • TWAP
    • Funding payments
    • Liquidation
    • Insurance
    • Trading fees
  • Contracts Overview
  • Economic Parameters
  • Risk Factors
  • Guides
    • Trader Interactions
    • Liquidity Provision
    • Liquidation
    • Choosing proposedAmount
    • Governance
    • Staking
  • Core Contracts
    • ClearingHouse
    • Perpetual
    • Vault
    • Oracle
    • Insurance
    • CurveCryptoViews
  • Token Contracts
    • UA
    • vBase
    • vQuote
  • External Contracts
    • CryptoSwap
    • CurveMath
    • CurveToken
    • AggregatorV3Interface
  • Peripheral Contracts
    • RewardController
    • RewardDistributor
    • PerpRewardDistributor
    • StakedToken
    • EcosystemReserve
    • SafetyModule
    • SMRewardDistributor
    • AuctionModule
Powered by GitBook
On this page
  • Functions
  • constructor
  • transferAdmin
  • Errors
  • EcosystemReserve_InvalidAdmin
  1. Peripheral Contracts

EcosystemReserve

Last updated 12 months ago

Inherits:

Author: webthethird

Stores ERC20 tokens, and allows to dispose of them via approval or transfer dynamics

Inherits from Aave's AdminControlledEcosystemReserve by BGD Labs, but with a transferable admin and a constructor, as it is not intended to be used as a transparent proxy implementation

Functions

constructor

EcosystemReserve constructor

constructor(address fundsAdmin);

Parameters

Name
Type
Description

fundsAdmin

address

Address of the admin who can approve or transfer tokens from the reserve

transferAdmin

Sets the admin of the EcosystemReserve

Only callable by the current admin

function transferAdmin(address newAdmin) external onlyFundsAdmin;

Parameters

Name
Type
Description

newAdmin

address

Address of the new admin

Errors

EcosystemReserve_InvalidAdmin

Error returned when trying to set the admin to the zero address

error EcosystemReserve_InvalidAdmin();
Git Source
AdminControlledEcosystemReserve