Contracts Structure

This page discusses some of the functionalities and functions of the MINER Hybrid Volatility Farming contracts.

Components

Factory Contract

  • Manages the creation and administration of Mine contracts.

  • Keeps track of all Mines and provides interaction functions.

Mine Contract

  • Represents individual staking instances for MINER tokens.

  • Compatible with any ERC-X and ERC20.

  • Offers functionalities for token wrapping and unwrapping.

  • Wrap and Unwrap fees are distributed among stakers.

  • Protocol and Controller fees can be enabled.

Features

Factory, Factory Owner, Controller

  • setReferencePool() : The purpose of the reference pool is to enable to derive the price of the underlying asset.

  • setLiquidityPool() : Set liquidity pools for an xToken to be used on the pool interface.

  • setWrapFee() : Set wrap fee.

  • setUnwrapFee() : Set unwrap fee.

  • setControllerFee() : Set the controller fee.

Factory, Factory Owner

  • setControllerAndProtocolFee() : Set both controller and protocol fee.

  • setProtocolFee() : Set protocol fee.

  • claimProtocolFee() : Claim protocol fee.

Controller

  • claimControllerFee() : Claim controller fee.

Users

  • Wrap/unwrap ERC20, ERC721, ERC1155, batchERC1155.

Last updated