The Boneyard
Based on Sushiswap's Masterchef v1
Methods
BONUS_MULTIPLIER
function BONUS_MULTIPLIER() external view returns (uint256)
Returns
_0
uint256
undefined
addToken
function addToken(uint256 _allocPoint, contract IERC20 _pToken, bool _withUpdate) external nonpayable
Parameters
_allocPoint
uint256
undefined
_pToken
contract IERC20
undefined
_withUpdate
bool
undefined
bonusEndBlock
function bonusEndBlock() external view returns (uint256)
Returns
_0
uint256
undefined
deposit
function deposit(uint256 _pid, uint256 _amount) external nonpayable
Parameters
_pid
uint256
undefined
_amount
uint256
undefined
dev
function dev(address _devaddr) external nonpayable
Parameters
_devaddr
address
undefined
devaddr
function devaddr() external view returns (address)
Returns
_0
address
undefined
emergencyWithdraw
function emergencyWithdraw(uint256 _pid) external nonpayable
Parameters
_pid
uint256
undefined
getMultiplier
function getMultiplier(uint256 _from, uint256 _to) external view returns (uint256)
Parameters
_from
uint256
undefined
_to
uint256
undefined
Returns
_0
uint256
undefined
grantRole
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account);}
Parameters
role
bytes32
undefined
account
address
undefined
massUpdatePools
function massUpdatePools() external nonpayable
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
_0
address
undefined
pendingSkrimples
function pendingSkrimples(uint256 _pid, address _user) external view returns (uint256)
Parameters
_pid
uint256
undefined
_user
address
undefined
Returns
_0
uint256
undefined
poolInfo
function poolInfo(uint256) external view returns (contract IERC20 lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accSushiPerShare)
Parameters
_0
uint256
undefined
Returns
pToken
contract IERC20
undefined
allocPoint
uint256
undefined
lastRewardBlock
uint256
undefined
accSkrimplesPerShare
uint256
undefined
poolLength
function poolLength() external view returns (uint256)
Returns
_0
uint256
undefined
renounceRole
function renounceRole() external nonpayable
Parameters
role
uint256
undefined
account
address
undefined
Leaves the contract without admin. It will not be possible to call onlyAdmin
functions anymore. Can only be called by the current admin. NOTE: Renouncing admin role will leave the contract without an admin, thereby removing any functionality that is only available to the admin.
revokeRole
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account);}
Parameters
role
uint256
undefined
account
address
undefined
set
function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) external nonpayable
Parameters
_pid
uint256
undefined
_allocPoint
uint256
undefined
_withUpdate
bool
undefined
startBlock
function startBlock() external view returns (uint256)
Returns
_0
uint256
undefined
skrimples
function skrimples() external view returns (contract SkrimplesToken)
Returns
_0
contract SkrimplesToken
undefined
skrimplesPerBlock
function skrimplesPerBlock() external view returns (uint256)
Returns
_0
uint256
undefined
totalAllocPoint
function totalAllocPoint() external view returns (uint256)
Returns
_0
uint256
undefined
updatePool
function updatePool(uint256 _pid) external nonpayable
Parameters
_pid
uint256
undefined
updateTreasury
function updateTreasury(address _treasury) public {require (hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin");treasury = _treasury;}}
Parameters
treasury
address
undefinied
updateTreasury is an onlyAdmin function and can only be called by current admin.
userInfo
function userInfo(uint256, address) external view returns (uint256 amount, uint256 rewardDebt)
Parameters
_0
uint256
undefined
_1
address
undefined
Returns
amount
uint256
undefined
rewardDebt
uint256
undefined
withdraw
function withdraw(uint256 _pid, uint256 _amount) external nonpayable
Parameters
_pid
uint256
undefined
_amount
uint256
undefined
Events
Deposit
event Deposit(address indexed user, uint256 indexed pid, uint256 amount)
Parameters
user indexed
address
undefined
pid indexed
uint256
undefined
amount
uint256
undefined
EmergencyWithdraw
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount)
Parameters
user indexed
address
undefined
pid indexed
uint256
undefined
amount
uint256
undefined
Withdraw
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount)
Parameters
user indexed
address
undefined
pid indexed
uint256
undefined
amount
uint256
undefined
Last updated