Address Contract Verified
Address
0x48bE867B240D2fFafF69e0746130F2c027d8d3d2
Balance
0 ETH
Nonce
1
Code Size
8309 bytes
Creator
0x5451F3fB...1628 at tx 0x98ac6d78...a063f4
Indexed Transactions
0 (1 on-chain, 0.6% indexed)
Contract Bytecode
8309 bytes
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de578063cba0e99611610097578063f21f537d11610071578063f21f537d146104ab578063f2cc0c18146104b3578063f2fde38b146104d9578063f84354f1146104ff5761018e565b8063cba0e9961461044f578063d89135cd14610475578063dd62ed3e1461047d5761018e565b8063715018a6146103d75780638da5cb5b146103df57806395d89b41146103e7578063a457c2d7146103ef578063a9059cbb1461041b578063cb906af8146104475761018e565b8063313ce5671161014b57806342966c681161012557806342966c68146103365780634549b039146103535780634d09deb31461037857806370a08231146103b15761018e565b8063313ce567146102c557806339509351146102e3578063403ecbb31461030f5761018e565b806306fdde0314610193578063095ea7b31461021057806313114a9d1461025057806318160ddd1461026a57806323b872dd146102725780632d838119146102a8575b600080fd5b61019b610525565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b0381351690602001356105bb565b604080519115158252519081900360200190f35b6102586105d9565b60408051918252519081900360200190f35b6102586105df565b61023c6004803603606081101561028857600080fd5b506001600160a01b038135811691602081013590911690604001356105f1565b610258600480360360208110156102be57600080fd5b503561067e565b6102cd6106e6565b6040805160ff9092168252519081900360200190f35b61023c600480360360408110156102f957600080fd5b506001600160a01b0381351690602001356106ef565b6103346004803603604081101561032557600080fd5b50803590602001351515610743565b005b6103346004803603602081101561034c57600080fd5b50356108b1565b6102586004803603604081101561036957600080fd5b5080359060200135151561097d565b6103956004803603602081101561038e57600080fd5b5035610a19565b604080516001600160a01b039092168252519081900360200190f35b610258600480360360208110156103c757600080fd5b50356001600160a01b0316610a40565b610334610aa2565b610395610b44565b61019b610b53565b61023c6004803603604081101561040557600080fd5b506001600160a01b038135169060200135610bb4565b61023c6004803603604081101561043157600080fd5b506001600160a01b038135169060200135610c22565b61023c610c36565b61023c6004803603602081101561046557600080fd5b50356001600160a01b0316610c44565b610258610c62565b6102586004803603604081101561049357600080fd5b506001600160a01b0381358116916020013516610c68565b610258610c93565b610334600480360360208110156104c957600080fd5b50356001600160a01b0316610c99565b610334600480360360208110156104ef57600080fd5b50356001600160a01b0316610ed9565b6103346004803603602081101561051557600080fd5b50356001600160a01b0316610fd1565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105b15780601f10610586576101008083540402835291602001916105b1565b820191906000526020600020905b81548152906001019060200180831161059457829003601f168201915b5050505050905090565b60006105cf6105c8611216565b848461121a565b5060015b92915050565b60075490565b60006105ec600954611306565b905090565b60006105fe84848461132c565b6106748461060a611216565b61066f85604051806060016040528060288152602001611f35602891396001600160a01b038a16600090815260036020526040812090610648611216565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6114f716565b61121a565b5060019392505050565b60006006548211156106c15760405162461bcd60e51b815260040180806020018281038252602a815260200180611ea2602a913960400191505060405180910390fd5b60006106cb61158e565b90506106dd838263ffffffff6115b716565b9150505b919050565b600d5460ff1690565b60006105cf6106fc611216565b8461066f856003600061070d611216565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61160016565b600061074d611216565b6001600160a01b03811660009081526004602052604090205490915060ff16156107a85760405162461bcd60e51b815260040180806020018281038252602c815260200180611fef602c913960400191505060405180910390fd5b8161081b5760006107b88461165a565b5050506001600160a01b0386166000908152600160205260409020549394506107ec9392508491505063ffffffff6116b416565b6001600160a01b03831660009081526001602052604081209190915561081590829086906116f6565b506108ac565b60006108268461165a565b5050506001600160a01b03861660009081526001602052604090205493945061085a9392508491505063ffffffff6116b416565b6001600160a01b03831660009081526001602052604081209190915561088785600263ffffffff6115b716565b9050600061089b868363ffffffff6116b416565b90506108a88382846116f6565b5050505b505050565b60006108bb611216565b6001600160a01b03811660009081526004602052604090205490915060ff16156109165760405162461bcd60e51b815260040180806020018281038252602c815260200180611fef602c913960400191505060405180910390fd5b60006109218361165a565b5050506001600160a01b0386166000908152600160205260409020549394506109559392508491505063ffffffff6116b416565b6001600160a01b0383166000908152600160205260408120919091556108ac908290856116f6565b600061098a600954611306565b8311156109de576040805162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c7900604482015290519081900360640190fd5b816109fe5760006109ee8461165a565b509496506105d395505050505050565b6000610a098461165a565b509396506105d395505050505050565b60058181548110610a2657fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03811660009081526004602052604081205460ff1615610a8057506001600160a01b0381166000908152600260205260409020546106e1565b6001600160a01b0382166000908152600160205260409020546105d39061067e565b610aaa611216565b6000546001600160a01b03908116911614610afa576040805162461bcd60e51b81526020600482018190526024820152600080516020611f5d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105b15780601f10610586576101008083540402835291602001916105b1565b60006105cf610bc1611216565b8461066f8560405180606001604052806025815260200161201b6025913960036000610beb611216565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6114f716565b60006105cf610c2f611216565b848461132c565b60006105ec6009544261173d565b6001600160a01b031660009081526004602052604090205460ff1690565b60085490565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b60095490565b610ca1611216565b6000546001600160a01b03908116911614610cf1576040805162461bcd60e51b81526020600482018190526024820152600080516020611f5d833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff1615610d5f576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b600554600a11610db6576040805162461bcd60e51b815260206004820152601f60248201527f4d6178206e756d626572206f66206163636f756e7473206578636c7564656400604482015290519081900360640190fd5b600a546001600160a01b0382811691161415610e19576040805162461bcd60e51b815260206004820152601b60248201527f4d756c74697369672063616e6e6f74206265206578636c756465640000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205415610e73576001600160a01b038116600090815260016020526040902054610e599061067e565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600460205260408120805460ff191660019081179091556005805491820181559091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319169091179055565b610ee1611216565b6000546001600160a01b03908116911614610f31576040805162461bcd60e51b81526020600482018190526024820152600080516020611f5d833981519152604482015290519081900360640190fd5b6001600160a01b038116610f765760405162461bcd60e51b8152600401808060200182810382526026815260200180611ecc6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610fd9611216565b6000546001600160a01b03908116911614611029576040805162461bcd60e51b81526020600482018190526024820152600080516020611f5d833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff16611096576040805162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f74206578636c75646564000000000000000000604482015290519081900360640190fd5b60005b60055481101561121257816001600160a01b0316600582815481106110ba57fe5b6000918252602090912001546001600160a01b0316141561120a576001600160a01b0382166000908152600260205260408120546110f8908261097d565b6001600160a01b03841660009081526001602052604090205490915061113790611128908363ffffffff6116b416565b6006549063ffffffff6116b416565b6006556001600160a01b03831660009081526001602090815260408083208490556002825280832083905560049091529020805460ff1916905560058054600019810190811061118357fe5b600091825260209091200154600580546001600160a01b0390921691849081106111a957fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060058054806111e257fe5b600082815260209020810160001990810180546001600160a01b031916905501905550611212565b600101611099565b5050565b3390565b6001600160a01b03831661125f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611fcb6024913960400191505060405180910390fd5b6001600160a01b0382166112a45760405162461bcd60e51b8152600401808060200182810382526022815260200180611ef26022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006105d3600854611320662386f26fc10000854261175b565b9063ffffffff6116b416565b6001600160a01b0383166113715760405162461bcd60e51b8152600401808060200182810382526025815260200180611fa66025913960400191505060405180910390fd5b6001600160a01b0382166113b65760405162461bcd60e51b8152600401808060200182810382526023815260200180611e7f6023913960400191505060405180910390fd5b600081116113f55760405162461bcd60e51b8152600401808060200182810382526029815260200180611f7d6029913960400191505060405180910390fd5b6001600160a01b03831660009081526004602052604090205460ff16801561143657506001600160a01b03821660009081526004602052604090205460ff16155b1561144b57611446838383611793565b6108ac565b6001600160a01b03831660009081526004602052604090205460ff1615801561148c57506001600160a01b03821660009081526004602052604090205460ff165b1561149c576114468383836118cf565b6001600160a01b03831660009081526004602052604090205460ff1680156114dc57506001600160a01b03821660009081526004602052604090205460ff165b156114ec57611446838383611997565b6108ac838383611a23565b600081848411156115865760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561154b578181015183820152602001611533565b50505050905090810190601f1680156115785780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600080600061159b611a7a565b90925090506115b0828263ffffffff6115b716565b9250505090565b60006115f983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611bd2565b9392505050565b6000828201838110156115f9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000806000806000806000806000806116728b611c37565b925092509250600061168261158e565b905060008060006116948f8786611c83565b919f509d509b509599509397509195509350505050919395979092949650565b60006115f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506114f7565b600654611709908463ffffffff6116b416565b60065560075461171f908363ffffffff61160016565b600755600854611735908263ffffffff61160016565b600855505050565b60006213c680611753838563ffffffff6116b416565b109392505050565b600061178b61177e63097343df6117728686611cd1565b9063ffffffff611ce316565b859063ffffffff61160016565b949350505050565b6000806000806000806117a58761165a565b965096505095509550955095506117ea87600260008c6001600160a01b03166001600160a01b03168152602001908152602001600020546116b490919063ffffffff16565b6001600160a01b038a1660009081526002602090815260408083209390935560019052205461181f908763ffffffff6116b416565b6001600160a01b03808b1660009081526001602052604080822093909355908a1681522054611854908663ffffffff61160016565b6001600160a01b03891660009081526001602052604090205561187989858484611d3c565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050505050565b6000806000806000806118e18761165a565b9650965050955095509550955061192686600160008c6001600160a01b03166001600160a01b03168152602001908152602001600020546116b490919063ffffffff16565b6001600160a01b03808b16600090815260016020908152604080832094909455918b16815260029091522054611962908463ffffffff61160016565b6001600160a01b038916600090815260026020908152604080832093909355600190522054611854908663ffffffff61160016565b6000806000806000806119a98761165a565b965096505095509550955095506119ee87600260008c6001600160a01b03166001600160a01b03168152602001908152602001600020546116b490919063ffffffff16565b6001600160a01b038a16600090815260026020908152604080832093909355600190522054611926908763ffffffff6116b416565b600080600080600080611a358761165a565b9650965050955095509550955061181f86600160008c6001600160a01b03166001600160a01b03168152602001908152602001600020546116b490919063ffffffff16565b600080600060065490506000611a91600954611306565b90508060005b600554811015611bc557836001600060058481548110611ab357fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020541180611b185750816002600060058481548110611af157fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15611b2d57505060065493509150611bce9050565b611b736001600060058481548110611b4157fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054859063ffffffff6116b416565b9350611bbb6002600060058481548110611b8957fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054839063ffffffff6116b416565b9150600101611a97565b50919350909150505b9091565b60008183611c215760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561154b578181015183820152602001611533565b506000838581611c2d57fe5b0495945050505050565b6000808080611c4d8560c863ffffffff6115b716565b90506000611c6282600263ffffffff611ce316565b90506000611c76878363ffffffff6116b416565b9791965091945092505050565b6000808080611c98878663ffffffff611ce316565b90506000611cac878763ffffffff611ce316565b90506000611cc0838363ffffffff6116b416565b929992985090965090945050505050565b60006115f9828463ffffffff6116b416565b600082611cf2575060006105d3565b82820282848281611cff57fe5b04146115f95760405162461bcd60e51b8152600401808060200182810382526021815260200180611f146021913960400191505060405180910390fd5b611d486009544261173d565b15611e0857600080600080611d5e878787611e19565b600a546001600160a01b031660009081526001602052604090205493975091955093509150611d93908363ffffffff61160016565b600a546001600160a01b0316600090815260016020526040902055611db98487856116f6565b600a546040805183815290516001600160a01b03928316928b16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a350505050611e13565b611e138383846116f6565b50505050565b600080808080611e3087600263ffffffff6115b716565b90506000611e44888363ffffffff6116b416565b90506000611e58838963ffffffff611ce316565b90506000611e6c8b8363ffffffff6116b416565b9b929a5090985091965094505050505056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373416d6f756e74206d757374206265206c657373207468616e20746f74616c207265666c656374696f6e734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725472616e7366657220616d6f756e74206d7573742062652067726561746572207468616e207a65726f45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734578636c75646564206164647265737365732063616e6e6f742063616c6c20746869732066756e6374696f6e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122007b63312f1dc03be48210ad57b4ac86077d5cf57d703d91e0f6f1e6859fa7c1564736f6c63430006020033
Verified Source Code Full Match
Compiler: v0.6.2+commit.bacdbe57
EVM: istanbul
Optimization: Yes (200 runs)
ELEVATE-flattened.sol 808 lines
// File: openzeppelin-solidity\contracts\GSN\Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File: openzeppelin-solidity\contracts\token\ERC20\IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// File: openzeppelin-solidity\contracts\math\SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
// File: openzeppelin-solidity\contracts\utils\Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: openzeppelin-solidity\contracts\access\Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev 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.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// File: contracts\ELEVATE.sol
/*
* Copyright © 2021 elevatedefi.io. ALL RIGHTS RESERVED.
*/
pragma solidity ^0.6.2;
contract ELEVATE is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcluded;
address[] public _excluded;
uint256 private constant _max_excluded = 10;
uint256 private constant MAX = ~uint256(0);
uint256 private constant _tInitial = 10 * 10**6 * 10**9;
uint256 private _rTotal = (MAX - (MAX % _tInitial));
uint256 private _tFeeTotal;
uint256 private _tBurned;
uint256 private _startTime;
address private multisig = address(0xD4Cb1274d46c96B576Dd599e370197e992ff8753);
string private _name = 'Elevate';
string private _symbol = 'ELE';
uint8 private _decimals = 9;
constructor () public {
_startTime = now;
_rOwned[_msgSender()] = _rTotal;
emit Transfer(address(0), _msgSender(), _tInitial);
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _getTotalSupply(_startTime);
}
function balanceOf(address account) public view override returns (uint256) {
if (_isExcluded[account]) return _tOwned[account];
return tokenFromReflection(_rOwned[account]);
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function isExcluded(address account) public view returns (bool) {
return _isExcluded[account];
}
function totalFees() public view returns (uint256) {
return _tFeeTotal;
}
function totalBurned() public view returns (uint256) {
return _tBurned;
}
function startedAt() public view returns (uint256) {
return _startTime;
}
function isGenesis() public view returns(bool) {
return _isGenesis(_startTime, now);
}
function reflect(uint256 tAmount, bool includeBurn) public {
address sender = _msgSender();
require(!_isExcluded[sender], "Excluded addresses cannot call this function");
if (!includeBurn) {
(uint256 rAmount,,,,,,) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_reflectFee(rAmount, tAmount, 0);
} else {
(uint256 rAmount,,,,,,) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
uint256 tBurn = tAmount.div(2);
uint256 tFee = tAmount.sub(tBurn);
_reflectFee(rAmount, tFee, tBurn);
}
}
function burn(uint256 tAmount) public {
address sender = _msgSender();
require(!_isExcluded[sender], "Excluded addresses cannot call this function");
(uint256 rAmount,,,,,,) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_reflectFee(rAmount, 0, tAmount);
}
function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
require(tAmount <= _getTotalSupply(_startTime), "Amount must be less than supply");
if (!deductTransferFee) {
(uint256 rAmount,,,,,,) = _getValues(tAmount);
return rAmount;
} else {
(,uint256 rTransferAmount,,,,,) = _getValues(tAmount);
return rTransferAmount;
}
}
function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
require(rAmount <= _rTotal, "Amount must be less than total reflections");
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function excludeAccount(address account) external onlyOwner() {
require(!_isExcluded[account], "Account is already excluded");
require(_excluded.length < _max_excluded, "Max number of accounts excluded");
require(account != multisig, "Multisig cannot be excluded");
if(_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcluded[account] = true;
_excluded.push(account);
}
function includeAccount(address account) external onlyOwner() {
require(_isExcluded[account], "Account is not excluded");
for (uint256 i = 0; i < _excluded.length; i++) {
if (_excluded[i] == account) {
uint256 _rBalance = reflectionFromToken(_tOwned[account], false);
_rTotal = _rTotal.sub(_rOwned[account].sub(_rBalance));
_rOwned[account] = _rBalance;
_tOwned[account] = 0;
_isExcluded[account] = false;
_excluded[i] = _excluded[_excluded.length - 1];
_excluded.pop();
break;
}
}
}
function _approve(address owner, address spender, uint256 amount) private {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _transfer(address sender, address recipient, uint256 amount) private {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded[recipient]) {
_transferToExcluded(sender, recipient, amount);
} else if (_isExcluded[sender] && _isExcluded[recipient]) {
_transferBothExcluded(sender, recipient, amount);
} else {
_transferStandard(sender, recipient, amount);
}
}
function _transferStandard(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount,,
uint256 tFeeHalf, uint256 currentRate) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_distributeFee(sender, rFee, tFeeHalf, currentRate);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount,,
uint256 tFeeHalf, uint256 currentRate) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_distributeFee(sender, rFee, tFeeHalf, currentRate);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount,,
uint256 tFeeHalf, uint256 currentRate) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_distributeFee(sender, rFee, tFeeHalf, currentRate);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount,,
uint256 tFeeHalf, uint256 currentRate) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_distributeFee(sender, rFee, tFeeHalf, currentRate);
emit Transfer(sender, recipient, tTransferAmount);
}
function _distributeFee(address sender, uint256 rFee, uint256 tFeeHalf, uint256 currentRate) private {
if (_isGenesis(_startTime, now)) {
(uint256 rNewFee, uint256 tBurn, uint256 rGenesisCut, uint256 tGenesisCut) = _getGenesisValues(rFee, tFeeHalf, currentRate);
_rOwned[multisig] = _rOwned[multisig].add(rGenesisCut);
_reflectFee(rNewFee, tFeeHalf, tBurn);
emit Transfer(sender, multisig, tGenesisCut);
} else {
_reflectFee(rFee, tFeeHalf, tFeeHalf);
}
}
function _reflectFee(uint256 rFee, uint256 tFee, uint256 tBurn) private {
_rTotal = _rTotal.sub(rFee);
_tFeeTotal = _tFeeTotal.add(tFee);
_tBurned = _tBurned.add(tBurn);
}
function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256, uint256) {
(uint256 tTransferAmount, uint256 tFee, uint256 tFeeHalf) = _getTValues(tAmount);
uint256 currentRate = _getRate();
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, currentRate);
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tFeeHalf, currentRate);
}
function _getTValues(uint256 tAmount) private pure returns (uint256, uint256, uint256) {
uint256 tFeeHalf = tAmount.div(200);
uint256 tFee = tFeeHalf.mul(2);
uint256 tTransferAmount = tAmount.sub(tFee);
return (tTransferAmount, tFee, tFeeHalf);
}
function _getRValues(uint256 tAmount, uint256 tFee, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee);
return (rAmount, rTransferAmount, rFee);
}
function _getGenesisValues(uint256 rFee, uint256 tFeeHalf, uint256 currentRate) private pure returns (uint256, uint256, uint256, uint256) {
uint256 tGenesisCut = tFeeHalf.div(2);
uint256 tBurn = tFeeHalf.sub(tGenesisCut);
uint256 rGenesisCut = tGenesisCut.mul(currentRate);
uint256 rNewFee = rFee.sub(rGenesisCut);
return (rNewFee, tBurn, rGenesisCut, tGenesisCut);
}
function _getRate() private view returns(uint256) {
(uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
return rSupply.div(tSupply);
}
function _getCurrentSupply() private view returns(uint256, uint256) {
uint256 rSupply = _rTotal;
uint256 tTotal = _getTotalSupply(_startTime);
uint256 tSupply = tTotal;
for (uint256 i = 0; i < _excluded.length; i++) {
if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, tTotal);
rSupply = rSupply.sub(_rOwned[_excluded[i]]);
tSupply = tSupply.sub(_tOwned[_excluded[i]]);
}
return (rSupply, tSupply);
}
function _getTotalSupply(uint256 startTime) private view returns(uint256) {
return _getInflatedSupply(_tInitial, startTime, now).sub(_tBurned);
}
function _getInflatedSupply(uint256 initialSupply, uint256 startTime, uint256 currentTime) private pure returns(uint256) {
return initialSupply.add(_getElapsedSeconds(startTime, currentTime).mul(158548959));
}
function _getElapsedSeconds(uint256 startTime, uint256 currentTime) private pure returns(uint256) {
return currentTime.sub(startTime);
}
function _isGenesis(uint256 startTime, uint256 currentTime) private pure returns(bool) {
return currentTime.sub(startTime) < 15 days;
}
}
Read Contract
_excluded 0x4d09deb3 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
isExcluded 0xcba0e996 → bool
isGenesis 0xcb906af8 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
startedAt 0xf21f537d → uint256
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalBurned 0xd89135cd → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
Write Contract 11 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 tAmount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeAccount 0xf2cc0c18
address account
includeAccount 0xf84354f1
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
reflect 0x403ecbb3
uint256 tAmount
bool includeBurn
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
This address has 1 on-chain transactions, but only 0.6% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →