Skip to content

Instantly share code, notes, and snippets.

View atisheksingh's full-sized avatar
🏢
Working from office

atisheks1 atisheksingh

🏢
Working from office
  • Blockchain Architech @ OriginalsGateways
  • Pune , India
  • 15:11 (UTC +05:30)
View GitHub Profile
// 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";
/**
*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.
@atisheksingh
atisheksingh / asvastaking.sol
Last active July 15, 2023 04:47
staking contract with all the function
// 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";
export var RewardAddress = '0x508fe55441E0a123bF4a866Fb9e8521573D8C40B'
export var StakeAddress = '0x508fe55441E0a123bF4a866Fb9e8521573D8C40B'
export var MplRewardsAddress = '0x3967Ac313c926d45b2AC2Ee4f86855833B18068a'
export var RewardAbi =[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
// 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";