MiniChefV2
The (older) MasterChef contract gives out a constant number of SYNAPSE tokens per block. It is the only address with minting rights for SYNAPSE. The idea for this MasterChef V2 (MCV2) contract is therefore to be the owner of a dummy token that is deposited into the MasterChef V1 (MCV1) contract. The allocation point for this pool on MCV1 is the total allocation point for all pools that receive double incentives.
Methods
SYNAPSE
Address of SYNAPSE contract.
Returns
add
Add a new LP to the pool. Can only be called by the owner. DO NOT add the same LP token more than once. Rewards will be messed up if you do.
Parameters
batch
Parameters
Returns
claimOwnership
deposit
Deposit LP tokens to MCV2 for SYNAPSE allocation.
Parameters
emergencyWithdraw
Withdraw without caring about rewards. EMERGENCY ONLY.
Parameters
harvest
Harvest proceeds for transaction sender to to
.
Parameters
lpToken
Address of the LP token for each MCV2 pool.
Parameters
Returns
massUpdatePools
Update reward variables for all pools. Be careful of gas spending!
Parameters
owner
Returns
pendingOwner
Returns
pendingSynapse
View function to see pending SYNAPSE on frontend.
Parameters
Returns
permitToken
Parameters
poolInfo
Info of each MCV2 pool.
Parameters
Returns
poolLength
Returns the number of MCV2 pools.
Returns
rewarder
Address of each IRewarder
contract in MCV2.
Parameters
Returns
set
Update the given pool's SYNAPSE allocation point and IRewarder
contract. Can only be called by the owner.
Parameters
setSynapsePerSecond
Sets the synapse per second to be distributed. Can only be called by the owner.
Parameters
synapsePerSecond
Returns
totalAllocPoint
Total allocation points. Must be the sum of all allocation points in all pools.
Returns
transferOwnership
Parameters
updatePool
Update reward variables of the given pool.
Parameters
Returns
userInfo
Info of each user that stakes LP tokens.
Parameters
Returns
withdraw
Withdraw LP tokens from MCV2.
Parameters
withdrawAndHarvest
Withdraw LP tokens from MCV2 and harvest proceeds for transaction sender to to
.
Parameters
Events
Deposit
Parameters
EmergencyWithdraw
Parameters
Harvest
Parameters
LogPoolAddition
Parameters
LogSetPool
Parameters
LogSynapsePerSecond
Parameters
LogUpdatePool
Parameters
OwnershipTransferred
Parameters
Withdraw
Parameters
Last updated