{ "address": "0x50579732bAB38b28D7273E28BE652BEd37C13fC1", "abi": [ { "inputs": [ { "internalType": "contract MirrorgateToken", "name": "_mirrorgate", "type": "address" }, { "internalType": "uint256", "name": "_mirrorgatePerBlock", "type": "uint256" }, { "internalType": "uint256", "name": "_startBlock", "type": "uint256" }, { "internalType": "uint256", "name": "_bonusEndBlock", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Deposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "EmergencyWithdraw", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Withdraw", "type": "event" }, { "inputs": [], "name": "BONUS_MULTIPLIER", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_allocPoint", "type": "uint256" }, { "internalType": "contract IERC20", "name": "_lpToken", "type": "address" } ], "name": "add", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "bonusEndBlock", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pid", "type": "uint256" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pid", "type": "uint256" } ], "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_from", "type": "uint256" }, { "internalType": "uint256", "name": "_to", "type": "uint256" } ], "name": "getMultiplier", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "lpBalances", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "massUpdatePools", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "mirrorgate", "outputs": [ { "internalType": "contract MirrorgateToken", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "mirrorgatePerBlock", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pid", "type": "uint256" }, { "internalType": "address", "name": "_user", "type": "address" } ], "name": "pendingMirrorgate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "poolInfo", "outputs": [ { "internalType": "contract IERC20", "name": "lpToken", "type": "address" }, { "internalType": "uint256", "name": "allocPoint", "type": "uint256" }, { "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" }, { "internalType": "uint256", "name": "accMirrorgatePerShare", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "poolLength", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pid", "type": "uint256" }, { "internalType": "uint256", "name": "_allocPoint", "type": "uint256" } ], "name": "set", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_mirrorgatePerBlock", "type": "uint256" } ], "name": "setMirrorgatePerBlock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "startBlock", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalAllocPoint", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pid", "type": "uint256" } ], "name": "updatePool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "userInfo", "outputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "rewardDebt", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_pid", "type": "uint256" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "transactionHash": "0x8bad5a2eb4032b1c3827807ce9c6387ed622d3b88a076ae3bda59a5b8b1f20a9", "receipt": { "to": null, "from": "0x368715F09C1AB5E0B55bF5bA19cD887189A28DBE", "contractAddress": "0x50579732bAB38b28D7273E28BE652BEd37C13fC1", "transactionIndex": 1, "gasUsed": "28685235", "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000004000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000080000000000000000000000000000080000000000000000000000000020000000000000000000000000000020000000000000000000000000000000000000", "blockHash": "0x149dfcd623816abf761f4709cd153880c6a2469c05d976649165b37f507cb49c", "transactionHash": "0x8bad5a2eb4032b1c3827807ce9c6387ed622d3b88a076ae3bda59a5b8b1f20a9", "logs": [ { "transactionIndex": 1, "blockNumber": 14284270, "transactionHash": "0x8bad5a2eb4032b1c3827807ce9c6387ed622d3b88a076ae3bda59a5b8b1f20a9", "address": "0x50579732bAB38b28D7273E28BE652BEd37C13fC1", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x000000000000000000000000368715f09c1ab5e0b55bf5ba19cd887189a28dbe" ], "data": "0x", "logIndex": 0, "blockHash": "0x149dfcd623816abf761f4709cd153880c6a2469c05d976649165b37f507cb49c" } ], "blockNumber": 14284270, "cumulativeGasUsed": "28685235", "status": 1, "byzantium": true }, "args": [ "0xddD3D69FC183cD5d078A2EE9f0beeDFb376B2819", "1000000000000000000", 14284358, 14284359 ], "numDeployments": 1, "solcInputHash": "c474952dec744e7c88dc7c3d2b8d163f", "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract MirrorgateToken\",\"name\":\"_mirrorgate\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_mirrorgatePerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_startBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_bonusEndBlock\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EmergencyWithdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BONUS_MULTIPLIER\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_allocPoint\",\"type\":\"uint256\"},{\"internalType\":\"contract IERC20\",\"name\":\"_lpToken\",\"type\":\"address\"}],\"name\":\"add\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bonusEndBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"emergencyWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_from\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_to\",\"type\":\"uint256\"}],\"name\":\"getMultiplier\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"lpBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"massUpdatePools\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mirrorgate\",\"outputs\":[{\"internalType\":\"contract MirrorgateToken\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mirrorgatePerBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"pendingMirrorgate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allocPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastRewardBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accMirrorgatePerShare\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_allocPoint\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_mirrorgatePerBlock\",\"type\":\"uint256\"}],\"name\":\"setMirrorgatePerBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalAllocPoint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"updatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDebt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"add(uint256,address)\":{\"params\":{\"_allocPoint\":\"The alloc point is used as the weight of the pool against all other alloc points added.\",\"_lpToken\":\"The lp token address\"}},\"emergencyWithdraw(uint256)\":{\"params\":{\"_pid\":\"The pid specifies the pool\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"add(uint256,address)\":{\"notice\":\"handles adding a new LP token (Can only be called by the owner)\"},\"emergencyWithdraw(uint256)\":{\"notice\":\"Withdraw without caring about rewards.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/LPStaking.sol\":\"LPStaking\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor () {\\n address msgSender = _msgSender();\\n _owner = msgSender;\\n emit OwnershipTransferred(address(0), msgSender);\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n emit OwnershipTransferred(_owner, address(0));\\n _owner = address(0);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n emit OwnershipTransferred(_owner, newOwner);\\n _owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x549c5343ad9f7e3f38aa4c4761854403502574bbc15b822db2ce892ff9b79da7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xe22a1fc7400ae196eba2ad1562d0386462b00a6363b742d55a2fd2021a58586f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20 {\\n using SafeMath for uint256;\\n\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n uint8 private _decimals;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\\n * a default value of 18.\\n *\\n * To select a different value for {decimals}, use {_setupDecimals}.\\n *\\n * All three of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor (string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n _decimals = 18;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\\n * called.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual returns (uint8) {\\n return _decimals;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \\\"ERC20: transfer amount exceeds allowance\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \\\"ERC20: decreased allowance below zero\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n _balances[sender] = _balances[sender].sub(amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[recipient] = _balances[recipient].add(amount);\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply = _totalSupply.add(amount);\\n _balances[account] = _balances[account].add(amount);\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n _balances[account] = _balances[account].sub(amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _totalSupply = _totalSupply.sub(amount);\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Sets {decimals} to a value other than the default one of 18.\\n *\\n * WARNING: This function should only be called from the constructor. Most\\n * applications that interact with token contracts will not expect\\n * {decimals} to ever change, and may work incorrectly if it does.\\n */\\n function _setupDecimals(uint8 decimals_) internal virtual {\\n _decimals = decimals_;\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n}\\n\",\"keccak256\":\"0x36b5ca4eabe888b39b10973621ca0dcc9b1508f8d06db9ddf045d7aa7c867d4a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0xbd74f587ab9b9711801baf667db1426e4a03fd2d7f15af33e0e0d0394e7cef76\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using SafeMath for uint256;\\n using Address for address;\\n\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n // solhint-disable-next-line max-line-length\\n require((value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc77dd6233a82c7c6e3dc49da8f3456baa00ecd3ea4dfa9222002a9aebf155dcd\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\n (bool success, ) = recipient.call{ value: amount }(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain`call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf89f005a3d98f7768cdee2583707db0ac725cf567d455751af32ee68132f3db3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/*\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with GSN meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping (bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) { // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\\n\\n bytes32 lastvalue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastvalue;\\n // Update the index for the moved value\\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n require(set._values.length > index, \\\"EnumerableSet: index out of bounds\\\");\\n return set._values[index];\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n}\\n\",\"keccak256\":\"0x9a2c1eebb65250f0e11882237038600f22a62376f0547db4acc0dfe0a3d8d34f\",\"license\":\"MIT\"},\"contracts/LPStaking.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity 0.7.6;\\r\\n\\r\\n// imports\\r\\nimport \\\"@openzeppelin/contracts/utils/EnumerableSet.sol\\\";\\r\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\r\\nimport \\\"./MirrorgateToken.sol\\\";\\r\\n\\r\\n// interfaces\\r\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\r\\n\\r\\n// libraries\\r\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\r\\nimport \\\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\\\";\\r\\n\\r\\ncontract LPStaking is Ownable {\\r\\n using SafeMath for uint256;\\r\\n using SafeERC20 for IERC20;\\r\\n // Info of each user.\\r\\n struct UserInfo {\\r\\n uint256 amount; // How many LP tokens the user has provided.\\r\\n uint256 rewardDebt; // Reward debt. See explanation below.\\r\\n //\\r\\n // We do some fancy math here. Basically, any point in time, the amount of STGs\\r\\n // entitled to a user but is pending to be distributed is:\\r\\n //\\r\\n // pending reward = (user.amount * pool.accStargatePerShare) - user.rewardDebt\\r\\n //\\r\\n // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:\\r\\n // 1. The pool's `accStargatePerShare` (and `lastRewardBlock`) gets updated.\\r\\n // 2. User receives the pending reward sent to his/her address.\\r\\n // 3. User's `amount` gets updated.\\r\\n // 4. User's `rewardDebt` gets updated.\\r\\n }\\r\\n // Info of each pool.\\r\\n struct PoolInfo {\\r\\n IERC20 lpToken; // Address of LP token contract.\\r\\n uint256 allocPoint; // How many allocation points assigned to this pool. STGs to distribute per block.\\r\\n uint256 lastRewardBlock; // Last block number that STGs distribution occurs.\\r\\n uint256 accMirrorgatePerShare; // Accumulated STGs per share, times 1e12. See below.\\r\\n }\\r\\n // The STG TOKEN!\\r\\n MirrorgateToken public mirrorgate;\\r\\n // Block number when bonus STG period ends.\\r\\n uint256 public bonusEndBlock;\\r\\n // STG tokens created per block.\\r\\n uint256 public mirrorgatePerBlock;\\r\\n // Bonus multiplier for early stargate makers.\\r\\n uint256 public constant BONUS_MULTIPLIER = 1;\\r\\n // Track which tokens have been added.\\r\\n mapping(address => bool) private addedLPTokens;\\r\\n\\r\\n mapping(uint256 => uint256) public lpBalances;\\r\\n\\r\\n // Info of each pool.\\r\\n PoolInfo[] public poolInfo;\\r\\n // Info of each user that stakes LP tokens.\\r\\n mapping(uint256 => mapping(address => UserInfo)) public userInfo;\\r\\n // Total allocation points. Must be the sum of all allocation points in all pools.\\r\\n uint256 public totalAllocPoint = 0;\\r\\n // The block number when STG mining starts.\\r\\n uint256 public startBlock;\\r\\n event Deposit(address indexed user, uint256 indexed pid, uint256 amount);\\r\\n event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);\\r\\n event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);\\r\\n\\r\\n constructor(\\r\\n MirrorgateToken _mirrorgate,\\r\\n uint256 _mirrorgatePerBlock,\\r\\n uint256 _startBlock,\\r\\n uint256 _bonusEndBlock\\r\\n ) {\\r\\n require(_startBlock >= block.number, \\\"LPStaking: _startBlock must be >= current block\\\");\\r\\n require(_bonusEndBlock >= _startBlock, \\\"LPStaking: _bonusEndBlock must be > than _startBlock\\\");\\r\\n require(address(_mirrorgate) != address(0x0), \\\"Mirrorgate: _mirrorgate cannot be 0x0\\\");\\r\\n mirrorgate = _mirrorgate;\\r\\n mirrorgatePerBlock = _mirrorgatePerBlock;\\r\\n startBlock = _startBlock;\\r\\n bonusEndBlock = _bonusEndBlock;\\r\\n }\\r\\n\\r\\n function poolLength() external view returns (uint256) {\\r\\n return poolInfo.length;\\r\\n }\\r\\n\\r\\n /// @notice handles adding a new LP token (Can only be called by the owner)\\r\\n /// @param _allocPoint The alloc point is used as the weight of the pool against all other alloc points added.\\r\\n /// @param _lpToken The lp token address\\r\\n function add(uint256 _allocPoint, IERC20 _lpToken) public onlyOwner {\\r\\n massUpdatePools();\\r\\n require(address(_lpToken) != address(0x0), \\\"Mirrorgate: lpToken cant be 0x0\\\");\\r\\n require(addedLPTokens[address(_lpToken)] == false, \\\"Mirrorgate: _lpToken already exists\\\");\\r\\n addedLPTokens[address(_lpToken)] = true;\\r\\n uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;\\r\\n totalAllocPoint = totalAllocPoint.add(_allocPoint);\\r\\n poolInfo.push(PoolInfo({lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accMirrorgatePerShare: 0}));\\r\\n }\\r\\n\\r\\n function set(uint256 _pid, uint256 _allocPoint) public onlyOwner {\\r\\n massUpdatePools();\\r\\n totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);\\r\\n poolInfo[_pid].allocPoint = _allocPoint;\\r\\n }\\r\\n\\r\\n function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {\\r\\n if (_to <= bonusEndBlock) {\\r\\n return _to.sub(_from).mul(BONUS_MULTIPLIER);\\r\\n } else if (_from >= bonusEndBlock) {\\r\\n return _to.sub(_from);\\r\\n } else {\\r\\n return bonusEndBlock.sub(_from).mul(BONUS_MULTIPLIER).add(_to.sub(bonusEndBlock));\\r\\n }\\r\\n }\\r\\n\\r\\n function pendingMirrorgate(uint256 _pid, address _user) external view returns (uint256) {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][_user];\\r\\n uint256 accMirrorgatePerShare = pool.accMirrorgatePerShare;\\r\\n uint256 lpSupply = pool.lpToken.balanceOf(address(this));\\r\\n if (block.number > pool.lastRewardBlock && lpSupply != 0) {\\r\\n uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);\\r\\n uint256 mirrorgateReward = multiplier.mul(mirrorgatePerBlock).mul(pool.allocPoint).div(totalAllocPoint);\\r\\n accMirrorgatePerShare = accMirrorgatePerShare.add(mirrorgateReward.mul(1e12).div(lpSupply));\\r\\n }\\r\\n return user.amount.mul(accMirrorgatePerShare).div(1e12).sub(user.rewardDebt);\\r\\n }\\r\\n\\r\\n function massUpdatePools() public {\\r\\n uint256 length = poolInfo.length;\\r\\n for (uint256 pid = 0; pid < length; ++pid) {\\r\\n updatePool(pid);\\r\\n }\\r\\n }\\r\\n\\r\\n function updatePool(uint256 _pid) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n if (block.number <= pool.lastRewardBlock) {\\r\\n return;\\r\\n }\\r\\n uint256 lpSupply = pool.lpToken.balanceOf(address(this));\\r\\n if (lpSupply == 0) {\\r\\n pool.lastRewardBlock = block.number;\\r\\n return;\\r\\n }\\r\\n uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);\\r\\n uint256 mirrorgateReward = multiplier.mul(mirrorgatePerBlock).mul(pool.allocPoint).div(totalAllocPoint);\\r\\n\\r\\n pool.accMirrorgatePerShare = pool.accMirrorgatePerShare.add(mirrorgateReward.mul(1e12).div(lpSupply));\\r\\n pool.lastRewardBlock = block.number;\\r\\n }\\r\\n\\r\\n function deposit(uint256 _pid, uint256 _amount) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][msg.sender];\\r\\n updatePool(_pid);\\r\\n if (user.amount > 0) {\\r\\n uint256 pending = user.amount.mul(pool.accMirrorgatePerShare).div(1e12).sub(user.rewardDebt);\\r\\n safeMirrorgateTransfer(msg.sender, pending);\\r\\n }\\r\\n pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);\\r\\n user.amount = user.amount.add(_amount);\\r\\n user.rewardDebt = user.amount.mul(pool.accMirrorgatePerShare).div(1e12);\\r\\n lpBalances[_pid] = lpBalances[_pid].add(_amount);\\r\\n emit Deposit(msg.sender, _pid, _amount);\\r\\n }\\r\\n\\r\\n function withdraw(uint256 _pid, uint256 _amount) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][msg.sender];\\r\\n require(user.amount >= _amount, \\\"withdraw: _amount is too large\\\");\\r\\n updatePool(_pid);\\r\\n uint256 pending = user.amount.mul(pool.accMirrorgatePerShare).div(1e12).sub(user.rewardDebt);\\r\\n safeMirrorgateTransfer(msg.sender, pending);\\r\\n user.amount = user.amount.sub(_amount);\\r\\n user.rewardDebt = user.amount.mul(pool.accMirrorgatePerShare).div(1e12);\\r\\n pool.lpToken.safeTransfer(address(msg.sender), _amount);\\r\\n lpBalances[_pid] = lpBalances[_pid].sub(_amount);\\r\\n emit Withdraw(msg.sender, _pid, _amount);\\r\\n }\\r\\n\\r\\n /// @notice Withdraw without caring about rewards.\\r\\n /// @param _pid The pid specifies the pool\\r\\n function emergencyWithdraw(uint256 _pid) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][msg.sender];\\r\\n uint256 userAmount = user.amount;\\r\\n user.amount = 0;\\r\\n user.rewardDebt = 0;\\r\\n pool.lpToken.safeTransfer(address(msg.sender), userAmount);\\r\\n lpBalances[_pid] = lpBalances[_pid].sub(userAmount);\\r\\n emit EmergencyWithdraw(msg.sender, _pid, userAmount);\\r\\n }\\r\\n\\r\\n /// @notice Safe transfer function, just in case if rounding error causes pool to not have enough STGs.\\r\\n /// @param _to The address to transfer tokens to\\r\\n /// @param _amount The quantity to transfer\\r\\n function safeMirrorgateTransfer(address _to, uint256 _amount) internal {\\r\\n uint256 mirrorgateBal = mirrorgate.balanceOf(address(this));\\r\\n if (_amount > mirrorgateBal) {\\r\\n IERC20(mirrorgate).safeTransfer(_to, mirrorgateBal);\\r\\n } else {\\r\\n IERC20(mirrorgate).safeTransfer(_to, _amount);\\r\\n }\\r\\n }\\r\\n\\r\\n function setMirrorgatePerBlock(uint256 _mirrorgatePerBlock) external onlyOwner {\\r\\n massUpdatePools();\\r\\n mirrorgatePerBlock = _mirrorgatePerBlock;\\r\\n }\\r\\n\\r\\n // Override the renounce ownership inherited by zeppelin ownable\\r\\n function renounceOwnership() public override onlyOwner {}\\r\\n}\\r\\n\",\"keccak256\":\"0x6cbbd76e862d345abe8f3d80be13da194a086a47567ae353d0a329392ca469ac\",\"license\":\"BUSL-1.1\"},\"contracts/MirrorgateToken.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity 0.7.6;\\r\\n\\r\\nimport \\\"./OmnichainFungibleToken.sol\\\";\\r\\n\\r\\ncontract MirrorgateToken is OmnichainFungibleToken {\\r\\n constructor(\\r\\n string memory _name,\\r\\n string memory _symbol,\\r\\n address _endpoint,\\r\\n uint16 _mainEndpointId,\\r\\n uint256 _initialSupplyOnMainEndpoint\\r\\n ) OmnichainFungibleToken(_name, _symbol, _endpoint, _mainEndpointId, _initialSupplyOnMainEndpoint) {}\\r\\n}\\r\\n\",\"keccak256\":\"0xa63c7fd93183a00705208730e515760dc4542f4f4278a7f201fa5c619594e79a\",\"license\":\"BUSL-1.1\"},\"contracts/OmnichainFungibleToken.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity 0.7.6;\\r\\n\\r\\nimport \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\r\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\r\\nimport \\\"./interfaces/ILayerZeroReceiver.sol\\\";\\r\\nimport \\\"./interfaces/ILayerZeroEndpoint.sol\\\";\\r\\nimport \\\"./interfaces/ILayerZeroUserApplicationConfig.sol\\\";\\r\\n\\r\\n//---------------------------------------------------------------------------\\r\\n// THIS CONTRACT IS OF BUSINESS LICENSE. CONTACT US BEFORE YOU USE IT.\\r\\n//\\r\\n// LayerZero is pushing now a new cross-chain token standard with permissive license soon\\r\\n//\\r\\n// Stay tuned for maximum cross-chain compatability of your token\\r\\n//---------------------------------------------------------------------------\\r\\ncontract OmnichainFungibleToken is ERC20, Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {\\r\\n ILayerZeroEndpoint immutable public endpoint;\\r\\n mapping(uint16 => bytes) public dstContractLookup; // a map of the connected contracts\\r\\n bool public paused; // indicates cross chain transfers are paused\\r\\n bool public isMain; // indicates this contract is on the main chain\\r\\n\\r\\n event Paused(bool isPaused);\\r\\n event SendToChain(uint16 srcChainId, bytes toAddress, uint256 qty, uint64 nonce);\\r\\n event ReceiveFromChain(uint16 srcChainId, address toAddress, uint256 qty, uint64 nonce);\\r\\n\\r\\n constructor(\\r\\n string memory _name,\\r\\n string memory _symbol,\\r\\n address _endpoint,\\r\\n uint16 _mainChainId,\\r\\n uint256 _initialSupplyOnMainEndpoint\\r\\n ) ERC20(_name, _symbol) {\\r\\n // only mint the total supply on the main chain\\r\\n if (ILayerZeroEndpoint(_endpoint).getChainId() == _mainChainId) {\\r\\n _mint(msg.sender, _initialSupplyOnMainEndpoint);\\r\\n isMain = true;\\r\\n }\\r\\n // set the LayerZero endpoint\\r\\n endpoint = ILayerZeroEndpoint(_endpoint);\\r\\n }\\r\\n\\r\\n function pauseSendTokens(bool _pause) external onlyOwner {\\r\\n paused = _pause;\\r\\n emit Paused(_pause);\\r\\n }\\r\\n\\r\\n function setDestination(uint16 _dstChainId, bytes calldata _destinationContractAddress) public onlyOwner {\\r\\n dstContractLookup[_dstChainId] = _destinationContractAddress;\\r\\n }\\r\\n\\r\\n function chainId() external view returns (uint16){\\r\\n return endpoint.getChainId();\\r\\n }\\r\\n\\r\\n function sendTokens(\\r\\n uint16 _dstChainId, // send tokens to this chainId\\r\\n bytes calldata _to, // where to deliver the tokens on the destination chain\\r\\n uint256 _qty, // how many tokens to send\\r\\n address _zroPaymentAddress, // ZRO payment address\\r\\n bytes calldata _adapterParam // txParameters\\r\\n ) public payable {\\r\\n require(!paused, \\\"OFT: sendTokens() is currently paused\\\");\\r\\n\\r\\n // lock by transferring to this contract if leaving the main chain, otherwise burn\\r\\n if (isMain) {\\r\\n _transfer(msg.sender, address(this), _qty);\\r\\n } else {\\r\\n _burn(msg.sender, _qty);\\r\\n }\\r\\n\\r\\n // abi.encode() the payload with the values to send\\r\\n bytes memory payload = abi.encode(_to, _qty);\\r\\n\\r\\n // send LayerZero message\\r\\n endpoint.send{value: msg.value}(\\r\\n _dstChainId, // destination chainId\\r\\n dstContractLookup[_dstChainId], // destination UA address\\r\\n payload, // abi.encode()'ed bytes\\r\\n msg.sender, // refund address (LayerZero will refund any extra gas back to msg.sender\\r\\n _zroPaymentAddress, // 'zroPaymentAddress'\\r\\n _adapterParam // 'adapterParameters'\\r\\n );\\r\\n uint64 nonce = endpoint.getOutboundNonce(_dstChainId, address(this));\\r\\n emit SendToChain(_dstChainId, _to, _qty, nonce);\\r\\n }\\r\\n\\r\\n function lzReceive(\\r\\n uint16 _srcChainId,\\r\\n bytes memory _fromAddress,\\r\\n uint64 _nonce,\\r\\n bytes memory _payload\\r\\n ) external override {\\r\\n require(msg.sender == address(endpoint)); // lzReceive must only be called by the endpoint\\r\\n require(\\r\\n _fromAddress.length == dstContractLookup[_srcChainId].length && keccak256(_fromAddress) == keccak256(dstContractLookup[_srcChainId]),\\r\\n \\\"OFT: invalid source sending contract\\\"\\r\\n );\\r\\n\\r\\n // decode and load the toAddress\\r\\n (bytes memory _to, uint256 _qty) = abi.decode(_payload, (bytes, uint256));\\r\\n address toAddress;\\r\\n assembly { toAddress := mload(add(_to, 20)) }\\r\\n\\r\\n // if the toAddress is 0x0, burn it\\r\\n if (toAddress == address(0x0)) toAddress == address(0xdEaD);\\r\\n\\r\\n // on the main chain unlock via transfer, otherwise _mint\\r\\n if (isMain) {\\r\\n _transfer(address(this), toAddress, _qty);\\r\\n } else {\\r\\n _mint(toAddress, _qty);\\r\\n }\\r\\n\\r\\n emit ReceiveFromChain(_srcChainId, toAddress, _qty, _nonce);\\r\\n }\\r\\n\\r\\n function estimateSendTokensFee(uint16 _dstChainId, bytes calldata _toAddress, bool _useZro, bytes calldata _txParameters) external view returns (uint256 nativeFee, uint256 zroFee) {\\r\\n // mock the payload for sendTokens()\\r\\n bytes memory payload = abi.encode(_toAddress, 1);\\r\\n return endpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _txParameters);\\r\\n }\\r\\n\\r\\n //---------------------------DAO CALL----------------------------------------\\r\\n // generic config for user Application\\r\\n function setConfig(\\r\\n uint16 _version,\\r\\n uint16 _chainId,\\r\\n uint256 _configType,\\r\\n bytes calldata _config\\r\\n ) external override onlyOwner {\\r\\n endpoint.setConfig(_version, _chainId, _configType, _config);\\r\\n }\\r\\n\\r\\n function setSendVersion(uint16 _version) external override onlyOwner {\\r\\n endpoint.setSendVersion(_version);\\r\\n }\\r\\n\\r\\n function setReceiveVersion(uint16 _version) external override onlyOwner {\\r\\n endpoint.setReceiveVersion(_version);\\r\\n }\\r\\n\\r\\n function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {\\r\\n endpoint.forceResumeReceive(_srcChainId, _srcAddress);\\r\\n }\\r\\n\\r\\n function renounceOwnership() public override onlyOwner {}\\r\\n}\\r\\n\",\"keccak256\":\"0xa8f71fb896a51c1e8dcf6333b6cbd993ceac7abb1d474a57128828bf2db76c1b\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroEndpoint.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity >=0.5.0;\\r\\n\\r\\nimport \\\"./ILayerZeroUserApplicationConfig.sol\\\";\\r\\n\\r\\ninterface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {\\r\\n // @notice send a LayerZero message to the specified address at a LayerZero endpoint.\\r\\n // @param _dstChainId - the destination chain identifier\\r\\n // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains\\r\\n // @param _payload - a custom bytes payload to send to the destination contract\\r\\n // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address\\r\\n // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction\\r\\n // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination\\r\\n function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;\\r\\n\\r\\n // @notice used by the messaging library to publish verified payload\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source contract (as bytes) at the source chain\\r\\n // @param _dstAddress - the address on destination chain\\r\\n // @param _nonce - the unbound message ordering nonce\\r\\n // @param _gasLimit - the gas limit for external contract execution\\r\\n // @param _payload - verified payload to send to the destination contract\\r\\n function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;\\r\\n\\r\\n // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source chain contract address\\r\\n function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);\\r\\n\\r\\n // @notice get the outboundNonce from this source chain which, consequently, is always an EVM\\r\\n // @param _srcAddress - the source chain contract address\\r\\n function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);\\r\\n\\r\\n // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery\\r\\n // @param _dstChainId - the destination chain identifier\\r\\n // @param _userApplication - the user app address on this EVM chain\\r\\n // @param _payload - the custom message to send over LayerZero\\r\\n // @param _payInZRO - if false, user app pays the protocol fee in native token\\r\\n // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain\\r\\n function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);\\r\\n\\r\\n // @notice get this Endpoint's immutable source identifier\\r\\n function getChainId() external view returns (uint16);\\r\\n\\r\\n // @notice the interface to retry failed message on this Endpoint destination\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source chain contract address\\r\\n // @param _payload - the payload to be retried\\r\\n function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;\\r\\n\\r\\n // @notice query if any STORED payload (message blocking) at the endpoint.\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source chain contract address\\r\\n function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);\\r\\n\\r\\n // @notice query if the _libraryAddress is valid for sending msgs.\\r\\n // @param _userApplication - the user app address on this EVM chain\\r\\n function getSendLibraryAddress(address _userApplication) external view returns (address);\\r\\n\\r\\n // @notice query if the _libraryAddress is valid for receiving msgs.\\r\\n // @param _userApplication - the user app address on this EVM chain\\r\\n function getReceiveLibraryAddress(address _userApplication) external view returns (address);\\r\\n\\r\\n // @notice query if the non-reentrancy guard for send() is on\\r\\n // @return true if the guard is on. false otherwise\\r\\n function isSendingPayload() external view returns (bool);\\r\\n\\r\\n // @notice query if the non-reentrancy guard for receive() is on\\r\\n // @return true if the guard is on. false otherwise\\r\\n function isReceivingPayload() external view returns (bool);\\r\\n\\r\\n // @notice get the configuration of the LayerZero messaging library of the specified version\\r\\n // @param _version - messaging library version\\r\\n // @param _chainId - the chainId for the pending config change\\r\\n // @param _userApplication - the contract address of the user application\\r\\n // @param _configType - type of configuration. every messaging library has its own convention.\\r\\n function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);\\r\\n\\r\\n // @notice get the send() LayerZero messaging library version\\r\\n // @param _userApplication - the contract address of the user application\\r\\n function getSendVersion(address _userApplication) external view returns (uint16);\\r\\n\\r\\n // @notice get the lzReceive() LayerZero messaging library version\\r\\n // @param _userApplication - the contract address of the user application\\r\\n function getReceiveVersion(address _userApplication) external view returns (uint16);\\r\\n}\\r\\n\",\"keccak256\":\"0x5304d445f73fc334336fb88caa0eec207e238df582485799828fe2b100bd8343\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity >=0.5.0;\\r\\n\\r\\ninterface ILayerZeroReceiver {\\r\\n // @notice LayerZero endpoint will invoke this function to deliver the message on the destination\\r\\n // @param _srcChainId - the source endpoint identifier\\r\\n // @param _srcAddress - the source sending contract address from the source chain\\r\\n // @param _nonce - the ordered message nonce\\r\\n // @param _payload - the signed payload is the UA bytes has encoded to be sent\\r\\n function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;\\r\\n}\\r\\n\",\"keccak256\":\"0xada017f02be5d557d1c8a1c89c972bf59799f82c418fe5e9a4de370f2fc9c1c1\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroUserApplicationConfig.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity >=0.5.0;\\r\\n\\r\\ninterface ILayerZeroUserApplicationConfig {\\r\\n // @notice set the configuration of the LayerZero messaging library of the specified version\\r\\n // @param _version - messaging library version\\r\\n // @param _chainId - the chainId for the pending config change\\r\\n // @param _configType - type of configuration. every messaging library has its own convention.\\r\\n // @param _config - configuration in the bytes. can encode arbitrary content.\\r\\n function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;\\r\\n\\r\\n // @notice set the send() LayerZero messaging library version to _version\\r\\n // @param _version - new messaging library version\\r\\n function setSendVersion(uint16 _version) external;\\r\\n\\r\\n // @notice set the lzReceive() LayerZero messaging library version to _version\\r\\n // @param _version - new messaging library version\\r\\n function setReceiveVersion(uint16 _version) external;\\r\\n\\r\\n // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload\\r\\n // @param _srcChainId - the chainId of the source chain\\r\\n // @param _srcAddress - the contract address of the source contract at the source chain\\r\\n function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;\\r\\n}\\r\\n\",\"keccak256\":\"0x3f6707ec8829588ae4eb629ca952b9b019532ce47aa01aad48bcdf9d03c72bac\",\"license\":\"BUSL-1.1\"}},\"version\":1}", "bytecode": "0x608060405260006008553480156200001657600080fd5b506040516200194238038062001942833981810160405260808110156200003c57600080fd5b508051602082015160408301516060909301519192909160006200005f620001a5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35043821015620000ea5760405162461bcd60e51b815260040180806020018281038252602f815260200180620018ee602f913960400191505060405180910390fd5b818110156200012b5760405162461bcd60e51b8152600401808060200182810382526034815260200180620018ba6034913960400191505060405180910390fd5b6001600160a01b038416620001725760405162461bcd60e51b81526004018080602001828103825260258152602001806200191d6025913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b039590951694909417909355600391909155600955600255620001a9565b3390565b61170180620001b96000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80635d0ba537116100c357806393f1a40b1161007c57806393f1a40b14610303578063c4cdd4ce14610348578063e2bbb15814610350578063e52d1f3214610373578063f2fde38b14610390578063f35c150e146103b65761014d565b80635d0ba5371461029c578063630b5ba1146102c0578063715018a6146102c85780638aa28550146102d05780638da5cb5b146102d85780638dbb1e3a146102e05761014d565b80631aed6553116101155780631aed6553146102035780632b8bbbe81461020b578063441a3e701461023757806348cd4cb11461025a57806351eb05a6146102625780635312ea8e1461027f5761014d565b80630328e32f14610152578063081e3eda146101815780631526fe271461018957806317caf6f1146101d65780631ab06ee5146101de575b600080fd5b61016f6004803603602081101561016857600080fd5b50356103e2565b60408051918252519081900360200190f35b61016f6103f4565b6101a66004803603602081101561019f57600080fd5b50356103fa565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61016f61043e565b610201600480360360408110156101f457600080fd5b5080359060200135610444565b005b61016f610518565b6102016004803603604081101561022157600080fd5b50803590602001356001600160a01b031661051e565b6102016004803603604081101561024d57600080fd5b5080359060200135610770565b61016f6108fc565b6102016004803603602081101561027857600080fd5b5035610902565b6102016004803603602081101561029557600080fd5b5035610a32565b6102a4610afc565b604080516001600160a01b039092168252519081900360200190f35b610201610b0b565b610201610b2e565b61016f610b92565b6102a4610b97565b61016f600480360360408110156102f657600080fd5b5080359060200135610ba6565b61032f6004803603604081101561031957600080fd5b50803590602001356001600160a01b0316610c12565b6040805192835260208301919091528051918290030190f35b61016f610c36565b6102016004803603604081101561036657600080fd5b5080359060200135610c3c565b6102016004803603602081101561038957600080fd5b5035610d6f565b610201600480360360208110156103a657600080fd5b50356001600160a01b0316610dde565b61016f600480360360408110156103cc57600080fd5b50803590602001356001600160a01b0316610ee0565b60056020526000908152604090205481565b60065490565b6006818154811061040a57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b61044c611042565b6001600160a01b031661045d610b97565b6001600160a01b0316146104a6576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6104ae610b0b565b6104eb816104e5600685815481106104c257fe5b90600052602060002090600402016001015460085461104690919063ffffffff16565b906110a3565b60088190555080600683815481106104ff57fe5b9060005260206000209060040201600101819055505050565b60025481565b610526611042565b6001600160a01b0316610537610b97565b6001600160a01b031614610580576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610588610b0b565b6001600160a01b0381166105e3576040805162461bcd60e51b815260206004820152601f60248201527f4d6972726f72676174653a206c70546f6b656e2063616e742062652030783000604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff161561063b5760405162461bcd60e51b815260040180806020018281038252602381526020018061165f6023913960400191505060405180910390fd5b6001600160a01b0381166000908152600460205260408120805460ff19166001179055600954431161066f57600954610671565b435b60085490915061068190846110a3565b600855604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919095161790935592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b60006006838154811061077f57fe5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156107fd576040805162461bcd60e51b815260206004820152601e60248201527f77697468647261773a205f616d6f756e7420697320746f6f206c617267650000604482015290519081900360640190fd5b61080684610902565b6000610840826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9061115d565b90611046565b905061084c33826111c4565b81546108589085611046565b80835560038401546108759164e8d4a51000916108349190611104565b60018301558254610890906001600160a01b0316338661127d565b6000858152600560205260409020546108a99085611046565b6000868152600560209081526040918290209290925580518681529051879233927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568929081900390910190a35050505050565b60095481565b60006006828154811061091157fe5b90600052602060002090600402019050806002015443116109325750610a2f565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561097c57600080fd5b505afa158015610990573d6000803e3d6000fd5b505050506040513d60208110156109a657600080fd5b50519050806109bc575043600290910155610a2f565b60006109cc836002015443610ba6565b905060006109f960085461083486600101546109f36003548761110490919063ffffffff16565b90611104565b9050610a1c610a11846108348464e8d4a51000611104565b6003860154906110a3565b6003850155505043600290920191909155505b50565b600060068281548110610a4157fe5b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610a91916001600160a01b0391909116908361127d565b600084815260056020526040902054610aaa9082611046565b6000858152600560209081526040918290209290925580518381529051869233927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595929081900390910190a350505050565b6001546001600160a01b031681565b60065460005b81811015610b2a57610b2281610902565b600101610b11565b5050565b610b36611042565b6001600160a01b0316610b47610b97565b6001600160a01b031614610b90576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b565b600181565b6000546001600160a01b031690565b60006002548211610bc757610bc060016109f38486611046565b9050610c0c565b6002548310610bda57610bc08284611046565b610bc0610bf26002548461104690919063ffffffff16565b6104e560016109f38760025461104690919063ffffffff16565b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b60035481565b600060068381548110610c4b57fe5b60009182526020808320868452600782526040808520338652909252922060049091029091019150610c7c84610902565b805415610cbf576000610cb1826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9050610cbd33826111c4565b505b8154610cd6906001600160a01b03163330866112cf565b8054610ce290846110a3565b8082556003830154610cff9164e8d4a51000916108349190611104565b6001820155600084815260056020526040902054610d1d90846110a3565b6000858152600560209081526040918290209290925580518581529051869233927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15929081900390910190a350505050565b610d77611042565b6001600160a01b0316610d88610b97565b6001600160a01b031614610dd1576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610dd9610b0b565b600355565b610de6611042565b6001600160a01b0316610df7610b97565b6001600160a01b031614610e40576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6001600160a01b038116610e855760405162461bcd60e51b81526004018080602001828103825260268152602001806115f26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060068481548110610ef057fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610f6e57600080fd5b505afa158015610f82573d6000803e3d6000fd5b505050506040513d6020811015610f9857600080fd5b5051600285015490915043118015610faf57508015155b1561100f576000610fc4856002015443610ba6565b90506000610feb60085461083488600101546109f36003548761110490919063ffffffff16565b905061100a611003846108348464e8d4a51000611104565b85906110a3565b935050505b611037836001015461083a64e8d4a5100061083486886000015461110490919063ffffffff16565b979650505050505050565b3390565b60008282111561109d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156110fd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261111357506000610c0c565b8282028284828161112057fe5b04146110fd5760405162461bcd60e51b815260040180806020018281038252602181526020018061163e6021913960400191505060405180910390fd5b60008082116111b3576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816111bc57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561120f57600080fd5b505afa158015611223573d6000803e3d6000fd5b505050506040513d602081101561123957600080fd5b50519050808211156112615760015461125c906001600160a01b0316848361127d565b611278565b600154611278906001600160a01b0316848461127d565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261127890849061132f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261132990859061132f565b50505050565b6000611384826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113e09092919063ffffffff16565b805190915015611278578080602001905160208110156113a357600080fd5b50516112785760405162461bcd60e51b815260040180806020018281038252602a8152602001806116a2602a913960400191505060405180910390fd5b60606113ef84846000856113f7565b949350505050565b6060824710156114385760405162461bcd60e51b81526004018080602001828103825260268152602001806116186026913960400191505060405180910390fd5b61144185611547565b611492576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106114d05780518252601f1990920191602091820191016114b1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611532576040519150601f19603f3d011682016040523d82523d6000602084013e611537565b606091505b509150915061103782828661154d565b3b151590565b6060831561155c5750816110fd565b82511561156c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115b657818101518382015260200161159e565b50505050905090810190601f1680156115e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d6972726f72676174653a205f6c70546f6b656e20616c7265616479206578697374734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212200f325103335db8d15ad0c4465bbe99d5771005674c996705853fc2f9f5e0e3a364736f6c634300070600334c505374616b696e673a205f626f6e7573456e64426c6f636b206d757374206265203e207468616e205f7374617274426c6f636b4c505374616b696e673a205f7374617274426c6f636b206d757374206265203e3d2063757272656e7420626c6f636b4d6972726f72676174653a205f6d6972726f72676174652063616e6e6f7420626520307830", "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80635d0ba537116100c357806393f1a40b1161007c57806393f1a40b14610303578063c4cdd4ce14610348578063e2bbb15814610350578063e52d1f3214610373578063f2fde38b14610390578063f35c150e146103b65761014d565b80635d0ba5371461029c578063630b5ba1146102c0578063715018a6146102c85780638aa28550146102d05780638da5cb5b146102d85780638dbb1e3a146102e05761014d565b80631aed6553116101155780631aed6553146102035780632b8bbbe81461020b578063441a3e701461023757806348cd4cb11461025a57806351eb05a6146102625780635312ea8e1461027f5761014d565b80630328e32f14610152578063081e3eda146101815780631526fe271461018957806317caf6f1146101d65780631ab06ee5146101de575b600080fd5b61016f6004803603602081101561016857600080fd5b50356103e2565b60408051918252519081900360200190f35b61016f6103f4565b6101a66004803603602081101561019f57600080fd5b50356103fa565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61016f61043e565b610201600480360360408110156101f457600080fd5b5080359060200135610444565b005b61016f610518565b6102016004803603604081101561022157600080fd5b50803590602001356001600160a01b031661051e565b6102016004803603604081101561024d57600080fd5b5080359060200135610770565b61016f6108fc565b6102016004803603602081101561027857600080fd5b5035610902565b6102016004803603602081101561029557600080fd5b5035610a32565b6102a4610afc565b604080516001600160a01b039092168252519081900360200190f35b610201610b0b565b610201610b2e565b61016f610b92565b6102a4610b97565b61016f600480360360408110156102f657600080fd5b5080359060200135610ba6565b61032f6004803603604081101561031957600080fd5b50803590602001356001600160a01b0316610c12565b6040805192835260208301919091528051918290030190f35b61016f610c36565b6102016004803603604081101561036657600080fd5b5080359060200135610c3c565b6102016004803603602081101561038957600080fd5b5035610d6f565b610201600480360360208110156103a657600080fd5b50356001600160a01b0316610dde565b61016f600480360360408110156103cc57600080fd5b50803590602001356001600160a01b0316610ee0565b60056020526000908152604090205481565b60065490565b6006818154811061040a57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b61044c611042565b6001600160a01b031661045d610b97565b6001600160a01b0316146104a6576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6104ae610b0b565b6104eb816104e5600685815481106104c257fe5b90600052602060002090600402016001015460085461104690919063ffffffff16565b906110a3565b60088190555080600683815481106104ff57fe5b9060005260206000209060040201600101819055505050565b60025481565b610526611042565b6001600160a01b0316610537610b97565b6001600160a01b031614610580576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610588610b0b565b6001600160a01b0381166105e3576040805162461bcd60e51b815260206004820152601f60248201527f4d6972726f72676174653a206c70546f6b656e2063616e742062652030783000604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff161561063b5760405162461bcd60e51b815260040180806020018281038252602381526020018061165f6023913960400191505060405180910390fd5b6001600160a01b0381166000908152600460205260408120805460ff19166001179055600954431161066f57600954610671565b435b60085490915061068190846110a3565b600855604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919095161790935592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b60006006838154811061077f57fe5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156107fd576040805162461bcd60e51b815260206004820152601e60248201527f77697468647261773a205f616d6f756e7420697320746f6f206c617267650000604482015290519081900360640190fd5b61080684610902565b6000610840826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9061115d565b90611046565b905061084c33826111c4565b81546108589085611046565b80835560038401546108759164e8d4a51000916108349190611104565b60018301558254610890906001600160a01b0316338661127d565b6000858152600560205260409020546108a99085611046565b6000868152600560209081526040918290209290925580518681529051879233927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568929081900390910190a35050505050565b60095481565b60006006828154811061091157fe5b90600052602060002090600402019050806002015443116109325750610a2f565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561097c57600080fd5b505afa158015610990573d6000803e3d6000fd5b505050506040513d60208110156109a657600080fd5b50519050806109bc575043600290910155610a2f565b60006109cc836002015443610ba6565b905060006109f960085461083486600101546109f36003548761110490919063ffffffff16565b90611104565b9050610a1c610a11846108348464e8d4a51000611104565b6003860154906110a3565b6003850155505043600290920191909155505b50565b600060068281548110610a4157fe5b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610a91916001600160a01b0391909116908361127d565b600084815260056020526040902054610aaa9082611046565b6000858152600560209081526040918290209290925580518381529051869233927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595929081900390910190a350505050565b6001546001600160a01b031681565b60065460005b81811015610b2a57610b2281610902565b600101610b11565b5050565b610b36611042565b6001600160a01b0316610b47610b97565b6001600160a01b031614610b90576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b565b600181565b6000546001600160a01b031690565b60006002548211610bc757610bc060016109f38486611046565b9050610c0c565b6002548310610bda57610bc08284611046565b610bc0610bf26002548461104690919063ffffffff16565b6104e560016109f38760025461104690919063ffffffff16565b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b60035481565b600060068381548110610c4b57fe5b60009182526020808320868452600782526040808520338652909252922060049091029091019150610c7c84610902565b805415610cbf576000610cb1826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9050610cbd33826111c4565b505b8154610cd6906001600160a01b03163330866112cf565b8054610ce290846110a3565b8082556003830154610cff9164e8d4a51000916108349190611104565b6001820155600084815260056020526040902054610d1d90846110a3565b6000858152600560209081526040918290209290925580518581529051869233927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15929081900390910190a350505050565b610d77611042565b6001600160a01b0316610d88610b97565b6001600160a01b031614610dd1576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610dd9610b0b565b600355565b610de6611042565b6001600160a01b0316610df7610b97565b6001600160a01b031614610e40576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6001600160a01b038116610e855760405162461bcd60e51b81526004018080602001828103825260268152602001806115f26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060068481548110610ef057fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610f6e57600080fd5b505afa158015610f82573d6000803e3d6000fd5b505050506040513d6020811015610f9857600080fd5b5051600285015490915043118015610faf57508015155b1561100f576000610fc4856002015443610ba6565b90506000610feb60085461083488600101546109f36003548761110490919063ffffffff16565b905061100a611003846108348464e8d4a51000611104565b85906110a3565b935050505b611037836001015461083a64e8d4a5100061083486886000015461110490919063ffffffff16565b979650505050505050565b3390565b60008282111561109d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156110fd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261111357506000610c0c565b8282028284828161112057fe5b04146110fd5760405162461bcd60e51b815260040180806020018281038252602181526020018061163e6021913960400191505060405180910390fd5b60008082116111b3576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816111bc57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561120f57600080fd5b505afa158015611223573d6000803e3d6000fd5b505050506040513d602081101561123957600080fd5b50519050808211156112615760015461125c906001600160a01b0316848361127d565b611278565b600154611278906001600160a01b0316848461127d565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261127890849061132f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261132990859061132f565b50505050565b6000611384826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113e09092919063ffffffff16565b805190915015611278578080602001905160208110156113a357600080fd5b50516112785760405162461bcd60e51b815260040180806020018281038252602a8152602001806116a2602a913960400191505060405180910390fd5b60606113ef84846000856113f7565b949350505050565b6060824710156114385760405162461bcd60e51b81526004018080602001828103825260268152602001806116186026913960400191505060405180910390fd5b61144185611547565b611492576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106114d05780518252601f1990920191602091820191016114b1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611532576040519150601f19603f3d011682016040523d82523d6000602084013e611537565b606091505b509150915061103782828661154d565b3b151590565b6060831561155c5750816110fd565b82511561156c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115b657818101518382015260200161159e565b50505050905090810190601f1680156115e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d6972726f72676174653a205f6c70546f6b656e20616c7265616479206578697374734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212200f325103335db8d15ad0c4465bbe99d5771005674c996705853fc2f9f5e0e3a364736f6c63430007060033", "devdoc": { "kind": "dev", "methods": { "add(uint256,address)": { "params": { "_allocPoint": "The alloc point is used as the weight of the pool against all other alloc points added.", "_lpToken": "The lp token address" } }, "emergencyWithdraw(uint256)": { "params": { "_pid": "The pid specifies the pool" } }, "owner()": { "details": "Returns the address of the current owner." }, "renounceOwnership()": { "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." }, "transferOwnership(address)": { "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": { "add(uint256,address)": { "notice": "handles adding a new LP token (Can only be called by the owner)" }, "emergencyWithdraw(uint256)": { "notice": "Withdraw without caring about rewards." } }, "version": 1 }, "storageLayout": { "storage": [ { "astId": 7, "contract": "contracts/LPStaking.sol:LPStaking", "label": "_owner", "offset": 0, "slot": "0", "type": "t_address" }, { "astId": 3360, "contract": "contracts/LPStaking.sol:LPStaking", "label": "mirrorgate", "offset": 0, "slot": "1", "type": "t_contract(MirrorgateToken)5017" }, { "astId": 3362, "contract": "contracts/LPStaking.sol:LPStaking", "label": "bonusEndBlock", "offset": 0, "slot": "2", "type": "t_uint256" }, { "astId": 3364, "contract": "contracts/LPStaking.sol:LPStaking", "label": "mirrorgatePerBlock", "offset": 0, "slot": "3", "type": "t_uint256" }, { "astId": 3371, "contract": "contracts/LPStaking.sol:LPStaking", "label": "addedLPTokens", "offset": 0, "slot": "4", "type": "t_mapping(t_address,t_bool)" }, { "astId": 3375, "contract": "contracts/LPStaking.sol:LPStaking", "label": "lpBalances", "offset": 0, "slot": "5", "type": "t_mapping(t_uint256,t_uint256)" }, { "astId": 3378, "contract": "contracts/LPStaking.sol:LPStaking", "label": "poolInfo", "offset": 0, "slot": "6", "type": "t_array(t_struct(PoolInfo)3358_storage)dyn_storage" }, { "astId": 3384, "contract": "contracts/LPStaking.sol:LPStaking", "label": "userInfo", "offset": 0, "slot": "7", "type": "t_mapping(t_uint256,t_mapping(t_address,t_struct(UserInfo)3349_storage))" }, { "astId": 3387, "contract": "contracts/LPStaking.sol:LPStaking", "label": "totalAllocPoint", "offset": 0, "slot": "8", "type": "t_uint256" }, { "astId": 3389, "contract": "contracts/LPStaking.sol:LPStaking", "label": "startBlock", "offset": 0, "slot": "9", "type": "t_uint256" } ], "types": { "t_address": { "encoding": "inplace", "label": "address", "numberOfBytes": "20" }, "t_array(t_struct(PoolInfo)3358_storage)dyn_storage": { "base": "t_struct(PoolInfo)3358_storage", "encoding": "dynamic_array", "label": "struct LPStaking.PoolInfo[]", "numberOfBytes": "32" }, "t_bool": { "encoding": "inplace", "label": "bool", "numberOfBytes": "1" }, "t_contract(IERC20)1045": { "encoding": "inplace", "label": "contract IERC20", "numberOfBytes": "20" }, "t_contract(MirrorgateToken)5017": { "encoding": "inplace", "label": "contract MirrorgateToken", "numberOfBytes": "20" }, "t_mapping(t_address,t_bool)": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => bool)", "numberOfBytes": "32", "value": "t_bool" }, "t_mapping(t_address,t_struct(UserInfo)3349_storage)": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => struct LPStaking.UserInfo)", "numberOfBytes": "32", "value": "t_struct(UserInfo)3349_storage" }, "t_mapping(t_uint256,t_mapping(t_address,t_struct(UserInfo)3349_storage))": { "encoding": "mapping", "key": "t_uint256", "label": "mapping(uint256 => mapping(address => struct LPStaking.UserInfo))", "numberOfBytes": "32", "value": "t_mapping(t_address,t_struct(UserInfo)3349_storage)" }, "t_mapping(t_uint256,t_uint256)": { "encoding": "mapping", "key": "t_uint256", "label": "mapping(uint256 => uint256)", "numberOfBytes": "32", "value": "t_uint256" }, "t_struct(PoolInfo)3358_storage": { "encoding": "inplace", "label": "struct LPStaking.PoolInfo", "members": [ { "astId": 3351, "contract": "contracts/LPStaking.sol:LPStaking", "label": "lpToken", "offset": 0, "slot": "0", "type": "t_contract(IERC20)1045" }, { "astId": 3353, "contract": "contracts/LPStaking.sol:LPStaking", "label": "allocPoint", "offset": 0, "slot": "1", "type": "t_uint256" }, { "astId": 3355, "contract": "contracts/LPStaking.sol:LPStaking", "label": "lastRewardBlock", "offset": 0, "slot": "2", "type": "t_uint256" }, { "astId": 3357, "contract": "contracts/LPStaking.sol:LPStaking", "label": "accMirrorgatePerShare", "offset": 0, "slot": "3", "type": "t_uint256" } ], "numberOfBytes": "128" }, "t_struct(UserInfo)3349_storage": { "encoding": "inplace", "label": "struct LPStaking.UserInfo", "members": [ { "astId": 3346, "contract": "contracts/LPStaking.sol:LPStaking", "label": "amount", "offset": 0, "slot": "0", "type": "t_uint256" }, { "astId": 3348, "contract": "contracts/LPStaking.sol:LPStaking", "label": "rewardDebt", "offset": 0, "slot": "1", "type": "t_uint256" } ], "numberOfBytes": "64" }, "t_uint256": { "encoding": "inplace", "label": "uint256", "numberOfBytes": "32" } } } }