FusionXSynthChefMainnet
(coming soon..)
Inherits: IProtocolSynthChef, Initializable, UUPSUpgradeable, AccessControlUpgradeable, OwnableUpgradeable
State Variables
router
Interface of Fusionx Router
Mantle mainnet address: 0xDd0840118bF9CCCc6d67b2944ddDfbdb995955FD
masterChefEnt
Entangle MasterChef address
ADMIN
MASTER
pools
Mapping from entangle internal pool Id to Fusionx pool address
isPoolInitialized
chef
Interface of Fusionx MasterChef
Functions
onlyCompounder
constructor
initialize
_authorizeUpgrade
setProtoMasterChef
addPool
Add a new pool. Can only be called by the ADMIN.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
|
| Information required to communicate with Fusionx. |
reinvest
Provide liquidity to pool and stake LP tokens. Can only be called by the Compounder.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
_optimalDeposit
_ensureAllowance
withdraw
Withdraw LP tokens from farm and remove liquidity. Transfer all to entangle MasterChef. Can only be called by the MASTER.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
|
| Amount of LP tokens to witdraw |
|
|
depositLP
Deposit LP tokens to farm. Can only be called by the MASTER.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
|
| Amount of LP tokens to deposit |
withdrawLP
Withdraw LP tokens from farm and transfer it to entangle MasterChef. Can only be called by the MASTER.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
|
| Amount of LP tokens to withdraw |
harvest
Accrue rewards and transfer it to Compounder. Can only be called by the Compounder.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
getTotalLpBalance
View function to get balance of LP tokens.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
Returns
Name | Type | Description |
---|---|---|
|
| Balance of LP tokens of this contract |
getPoolTokens
View function to get pool tokens addresses.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
Returns
Name | Type | Description |
---|---|---|
|
| array of pool token addresses. |
lpTokenAddress
View function to get address of lp tokens of specific pool.
Parameters
Name | Type | Description |
---|---|---|
|
| Entangle internal poolId |
Errors
FusionxSynthChef__E1
FusionxSynthChef__E2
FusionxSynthChef__NotACompounder
Last updated