Skip to main content

IP12MineUpgradeable

IP12MineUpgradeable

Deposit

event Deposit(address user, uint256 pid, uint256 amount, uint256 userAmount, uint256 poolAmount)

ExecuteWithdraw

event ExecuteWithdraw(address user, uint256 pid, bytes32 withdrawId, uint256 amount, uint256 userAmount, uint256 poolAmount)

QueueWithdraw

event QueueWithdraw(address user, uint256 pid, uint256 amount, bytes32 newWithdrawId, uint256 unlockTimestamp)

Claim

event Claim(address user, uint256 amount, address lpToken)

SetDelayB

event SetDelayB(uint256 oldDelayB, uint256 newDelayB)

SetDelayK

event SetDelayK(uint256 oldDelayK, uint256 newDelayK)

SetRate

event SetRate(uint256 oldRate, uint256 newRate)

SetP12Factory

event SetP12Factory(address oldP12Factory, address newP12Factory)

SetGaugeController

event SetGaugeController(contract IGaugeController oldGaugeController, contract IGaugeController newGaugeController)

WithdrawLpTokenEmergency

event WithdrawLpTokenEmergency(address lpToken, uint256 amount)

Emergency

event Emergency(address executor, uint256 emergencyUnlockTime)

Checkpoint

event Checkpoint(address lpToken, uint256 poolAmount, uint256 accP12PerShare)

EmergencyAlreadySet

error EmergencyAlreadySet()

NoEmergencyNow

error NoEmergencyNow()

EmergencyUnlockYet

error EmergencyUnlockYet()

InvalidLpAmount

error InvalidLpAmount(uint256 amount)

LpTokenExist

error LpTokenExist()

LpTokenNotExist

error LpTokenNotExist()

WithDrawTooMuch

error WithDrawTooMuch(uint256 max, uint256 request)

NotStakeTokenYet

error NotStakeTokenYet()

AlreadyWithdrawn

error AlreadyWithdrawn()

TooEarlyToWithdrawn

error TooEarlyToWithdrawn()

TooEarlyToCheck

error TooEarlyToCheck()

poolLength

function poolLength() external returns (uint256)

getPid

function getPid(address lpToken) external returns (uint256)

getUserLpBalance

function getUserLpBalance(address lpToken, address user) external returns (uint256)

checkpointAll

function checkpointAll() external

getWithdrawUnlockTimestamp

function getWithdrawUnlockTimestamp(address lpToken, uint256 amount) external returns (uint256)

withdrawEmergency

function withdrawEmergency() external

withdrawLpTokenEmergency

function withdrawLpTokenEmergency(address lpToken) external

withdrawAllLpTokenEmergency

function withdrawAllLpTokenEmergency() external

emergency

function emergency() external

createPool

function createPool(address lpToken) external

setDelayK

function setDelayK(uint256 delayK) external returns (bool)

setDelayB

function setDelayB(uint256 delayB) external returns (bool)

deposit

function deposit(address lpToken, uint256 amount) external

setRate

function setRate(uint256 newRate) external returns (bool)

setP12CoinFactory

function setP12CoinFactory(address newP12Factory) external

setGaugeController

function setGaugeController(contract IGaugeController newGaugeController) external

executeWithdraw

function executeWithdraw(address lpToken, bytes32 id) external

queueWithdraw

function queueWithdraw(address lpToken, uint256 amount) external

addLpTokenInfoForGameCreator

function addLpTokenInfoForGameCreator(address lpToken, uint256 amount, address gameCoinCreator) external

claim

function claim(address lpToken) external returns (uint256)

claimAll

function claimAll() external returns (uint256)

checkpoint

function checkpoint(address lpToken) external