npx hardhat compile
npx hardhat test
npx hardhat node
// SPDX-License-Identifier: AGPL-3.0-or-later | |
pragma solidity ^0.8.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/Math.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/SafeERC20.sol"; | |
export var RewardAddress = '0x508fe55441E0a123bF4a866Fb9e8521573D8C40B' | |
export var StakeAddress = '0x508fe55441E0a123bF4a866Fb9e8521573D8C40B' | |
export var MplRewardsAddress = '0x3967Ac313c926d45b2AC2Ee4f86855833B18068a' | |
export var RewardAbi =[ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, |
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/SafeERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/SafeERC20.sol"; |
/** | |
*Submitted for verification at polygonscan.com on 2021-12-20 | |
*/ | |
// SPDX-License-Identifier: MIT | |
pragma solidity 0.6.12; | |
pragma experimental ABIEncoderV2; | |
/** | |
* @dev Interface of the ERC20 standard as defined in the EIP. |
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.8.9; | |
/** | |
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include | |
* the optional functions; to access them see `ERC20Detailed`. | |
*/ | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; |
[ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ |
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_user", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", |
pragma solidity 0.6.12; | |
import '@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol'; | |
import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol'; | |
import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol'; | |
import '@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol'; | |
// import "@nomiclabs/buidler/console.sol"; | |
interface IWBNB { |