Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 540 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 17005377 | 636 days ago | IN | 0.00600286 ETH | 0.00387443 | ||||
Claim | 15638698 | 827 days ago | IN | 0.00296363 ETH | 0.00124924 | ||||
Claim | 15320721 | 876 days ago | IN | 0.01024018 ETH | 0.00322889 | ||||
Sacrifice LP | 15291523 | 880 days ago | IN | 0 ETH | 0.00170416 | ||||
Claim | 15081494 | 913 days ago | IN | 0 ETH | 0.00149335 | ||||
Claim | 14498931 | 1008 days ago | IN | 0.04479136 ETH | 0.00720801 | ||||
Claim | 14378726 | 1027 days ago | IN | 0.00774104 ETH | 0.00437694 | ||||
Sacrifice LP | 14362220 | 1029 days ago | IN | 0 ETH | 0.0008017 | ||||
Sacrifice LP | 14362206 | 1029 days ago | IN | 0 ETH | 0.00331898 | ||||
Claim | 14006109 | 1085 days ago | IN | 0.0181972 ETH | 0.03563379 | ||||
Claim | 14006086 | 1085 days ago | IN | 0.01835143 ETH | 0.03631468 | ||||
Claim | 13980146 | 1089 days ago | IN | 0 ETH | 0.02861908 | ||||
Sacrifice LP | 13970759 | 1090 days ago | IN | 0 ETH | 0.01625942 | ||||
Claim | 13747414 | 1125 days ago | IN | 0.03237338 ETH | 0.01183694 | ||||
Claim | 13661881 | 1138 days ago | IN | 0.18300382 ETH | 0.01653319 | ||||
Sacrifice LP | 13636497 | 1142 days ago | IN | 0 ETH | 0.01902349 | ||||
Claim | 13602207 | 1148 days ago | IN | 0.06513645 ETH | 0.02798409 | ||||
Claim | 13576022 | 1152 days ago | IN | 0 ETH | 0.0157919 | ||||
Sacrifice LP | 13554244 | 1155 days ago | IN | 0 ETH | 0.0188726 | ||||
Claim | 13512771 | 1162 days ago | IN | 0.13559398 ETH | 0.02390477 | ||||
Claim | 13448844 | 1172 days ago | IN | 0.50032185 ETH | 0.00905681 | ||||
Sacrifice LP | 13352847 | 1187 days ago | IN | 0 ETH | 0.01293304 | ||||
Claim | 13345333 | 1188 days ago | IN | 0.01687875 ETH | 0.00803167 | ||||
Claim | 13332095 | 1190 days ago | IN | 0 ETH | 0.00414103 | ||||
Sacrifice LP | 13306819 | 1194 days ago | IN | 0 ETH | 0.01133836 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
17005377 | 636 days ago | 0.0001177 ETH | ||||
17005377 | 636 days ago | 0.00588515 ETH | ||||
15638698 | 827 days ago | 0.00026942 ETH | ||||
15638698 | 827 days ago | 0.00269421 ETH | ||||
15320721 | 876 days ago | 0.00020078 ETH | ||||
15320721 | 876 days ago | 0.01003939 ETH | ||||
14498931 | 1008 days ago | 0.00044786 ETH | ||||
14498931 | 1008 days ago | 0.04434349 ETH | ||||
14378726 | 1027 days ago | 0.00015178 ETH | ||||
14378726 | 1027 days ago | 0.00758925 ETH | ||||
14006109 | 1085 days ago | 0.0003568 ETH | ||||
14006109 | 1085 days ago | 0.01784039 ETH | ||||
14006086 | 1085 days ago | 0.01784039 ETH | ||||
13747414 | 1125 days ago | 0.00063477 ETH | ||||
13747414 | 1125 days ago | 0.03173861 ETH | ||||
13661881 | 1138 days ago | 0.00358831 ETH | ||||
13661881 | 1138 days ago | 0.1794155 ETH | ||||
13602207 | 1148 days ago | 0.00127718 ETH | ||||
13602207 | 1148 days ago | 0.06385927 ETH | ||||
13512771 | 1162 days ago | 0.0026587 ETH | ||||
13512771 | 1162 days ago | 0.13293527 ETH | ||||
13448844 | 1172 days ago | 0.00981023 ETH | ||||
13448844 | 1172 days ago | 0.49051162 ETH | ||||
13345333 | 1188 days ago | 0.00033095 ETH | ||||
13345333 | 1188 days ago | 0.0165478 ETH |
Loading...
Loading
Contract Name:
Claim
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import './Rena.sol'; import './interfaces/ILPStaking.sol'; import './interfaces/IRebalancer.sol'; //This contract is intended to act as a second layer to the LP Staking contract. //The Staking contract requires 100% of claim to be added/removed on withdraw and deposits //of parent token. //Our modifaction requires payment for claim. //Claims from the LP Contract are inteded to accumlulate here recored to the address owed to. //The purchase and rebalancer refill happen here. contract Claim is Ownable { using SafeMath for uint256; event Claimed(address indexed, uint256, uint256); event lpSacrificed(address indexed, uint256, uint256); uint256 public claimDivisor; Rena rena; mapping(address => uint256) unclaimed; constructor(address rena_) { rena = Rena(rena_); claimDivisor = 2; } function maxClaimable(uint256 pid_, address account_) external view returns( uint256 claimable ) { address staking = rena.lpStaking(); uint256 pending_ = ILPStaking(staking).pendingrena(pid_, account_); claimable = unclaimed[account_].add(pending_); } function claim(uint256 requested_, uint256 pid_) external payable { address lpStaking = rena.lpStaking(); if(ILPStaking(lpStaking).pendingrena(pid_, msg.sender) > 0) ILPStaking(lpStaking).claim(msg.sender, pid_); require(requested_ <= unclaimed[msg.sender], "You don't have that much to claim."); unclaimed[msg.sender] = unclaimed[msg.sender].sub(requested_); uint256 claimValue = getClaimPrice(requested_); require(msg.value >= claimValue, "Insufficient input amount"); if(claimValue > 0){ IRebalancer(rena.rebalancer()).refill{value: claimValue}(); } rena.transfer(msg.sender, requested_); //send back dust if any uint dust = msg.value.sub(claimValue); if(dust > 0) { msg.sender.transfer(dust); } emit Claimed(msg.sender, requested_, msg.value); } //Approval for Claim will be required before calling this. function sacrificeLP(uint256 requested_, uint256 pid_) external { address lpStaking = rena.lpStaking(); if(ILPStaking(lpStaking).pendingrena(pid_, msg.sender) > 0) ILPStaking(lpStaking).claim(msg.sender, pid_); require(requested_ <= unclaimed[msg.sender], "You don't have that much to claim."); uint256 requiredLP = getLPPrice(requested_); unclaimed[msg.sender] = unclaimed[msg.sender].sub(requested_); ILPStaking(lpStaking).withdrawFromTo(msg.sender, 0, requiredLP, rena.rebalancer()); rena.transfer(msg.sender, requested_); emit lpSacrificed(msg.sender, requiredLP, requested_); } function getClaimPrice(uint256 _amount) public view returns(uint256 claimPrice) { if(claimDivisor == 0) return 0; address pair = rena.uniPair(); uint256 ethReserves = IERC20(rena.WETH()).balanceOf(pair); uint256 renaReserves = IERC20(address(rena)).balanceOf(pair); claimPrice = _amount.mul(ethReserves).div(renaReserves); claimPrice = claimPrice.sub(claimPrice.div(claimDivisor)); } function getLPPrice(uint256 _amount) public view returns(uint256 requiredLP) { uint256 eBal = IERC20(rena.WETH()).balanceOf(rena.uniPair()); uint256 lpSupply = IERC20(rena.uniPair()).totalSupply(); requiredLP = _amount.mul(eBal).div(lpSupply).div(4); requiredLP = requiredLP.sub(requiredLP.div(claimDivisor)); } function setClaim(address _from, uint256 _amount) external { require(msg.sender == rena.lpStaking(), "Only Staking can set claims"); unclaimed[_from] = unclaimed[_from].add(_amount); } function setClaimDivisor( uint256 _amount ) public onlyOwner { require(_amount != 0, 'Cannot set that'); claimDivisor = _amount; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * 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); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @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. */ abstract 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 virtual 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/ReentrancyGuard.sol'; import './dependencies/uniswap-v2-periphery/contracts/dependencies/uniswap-v2-core/contracts/interfaces/IUniswapV2Pair.sol'; import './dependencies/uniswap-v2-periphery/contracts/dependencies/uniswap-v2-core/contracts/interfaces/IUniswapV2Factory.sol'; import './dependencies/uniswap-v2-periphery/contracts/interfaces/IUniswapV2Router02.sol'; import './interfaces/IRebalancer.sol'; import './interfaces/ILPStaking.sol'; contract Rena is ERC20("Rena", "RENA"), Ownable, ReentrancyGuard { using SafeMath for uint256; //Needed Addresses address public WETH; address public renaRouter; address public uniRouter; address public uniFactory; address public uniPair; address public renaFactory; address payable public treasury; //Objects address payable public rebalancer; address public feeDistributor; address public claim; address public lpStaking; //Fee Divisors uint16 public feeDivisor; uint16 public callerRewardDivisor; uint16 public rebalancerDivisor; //Map toggles mapping(address => bool) feeless; //Overflow protected uint256 public minimumRebalanceAmount; uint256 public lastRebalance; uint256 public rebalanceInterval; constructor ( address renaRouter_, address uniRouter_, uint256 minimumReblanceAmount_, uint256 rebalanceInterval_ ) { treasury = msg.sender; feeDivisor = 100; callerRewardDivisor = 40; rebalancerDivisor = 200; minimumRebalanceAmount = minimumReblanceAmount_; renaRouter = renaRouter_; uniRouter = uniRouter_; WETH = IUniswapV2Router02(uniRouter).WETH(); uniFactory = IUniswapV2Router02(uniRouter).factory(); uniPair = IUniswapV2Factory(uniFactory).createPair(address(this), WETH); feeless[address(this)] = true; feeless[msg.sender] = true; lastRebalance = block.timestamp; rebalanceInterval = rebalanceInterval_; _mint(msg.sender, 11000000 * 1e18); } function _transfer(address from, address to, uint256 amount) internal override { if(feeDivisor > 0 && feeless[from] == false && feeless[to] == false) { uint256 feeAmount = amount.div(feeDivisor); super._transfer(from, address(feeDistributor), feeAmount); super._transfer(from, to, amount.sub(feeAmount)); } else { super._transfer(from, to, amount); } } function toggleFeeless(address addr_) external onlyOwner { feeless[addr_] = !feeless[addr_]; } function changeRebalanceInterval(uint256 interval_) external onlyOwner { rebalanceInterval = interval_; } function changeFeeDivisor(uint16 feeDivisor_) external onlyOwner { require(feeDivisor_ >= 10, "Must not be greater than 10% total fee"); feeDivisor = feeDivisor_; } function changeCallerRewardDivisor(uint16 callerRewardDivisor_) external onlyOwner { require(callerRewardDivisor_ >= 10, "Must not be greater than 10% total"); callerRewardDivisor = callerRewardDivisor_; } function changeMinRebalancerAmount(uint256 minimumRebalanceAmount_) external onlyOwner { require(minimumRebalanceAmount_ >= 1, "Must be greater than 1"); minimumRebalanceAmount = minimumRebalanceAmount_; } function changeRebalalncerDivisor(uint16 rebalancerDivisor_) external onlyOwner { require(rebalancerDivisor_ >= 10, "Must not be greater than 10% total"); rebalancerDivisor = rebalancerDivisor_; } function setUniRouter(address uniRouter_) external onlyOwner { uniRouter = uniRouter_; uniFactory = IUniswapV2Router02(uniRouter).factory(); WETH = IUniswapV2Router02(uniRouter).WETH(); uniPair = IUniswapV2Factory(uniFactory).getPair(WETH, address(this)); if( uniPair == address(0)) uniPair = IUniswapV2Factory(uniFactory).createPair(address(this), WETH); } function setRenaRouter(address renaRouter_) external onlyOwner { renaRouter = renaRouter_; renaFactory = IUniswapV2Router02(renaRouter).factory(); feeless[renaRouter_] = true; } function setRebalancer(address payable rebalancer_) external onlyOwner { rebalancer = rebalancer_; feeless[rebalancer_] = true; } function setClaim(address claim_) external onlyOwner { claim = claim_; feeless[claim_] = true; } function setlpStaking(address lpStaking_) external onlyOwner { lpStaking = lpStaking_; feeless[lpStaking_] = true; } function setFeeDistributor(address payable feeDistributor_) external onlyOwner { feeDistributor = feeDistributor_; feeless[feeDistributor_] = true; } function rebalance() external nonReentrant { require(balanceOf(msg.sender) > minimumRebalanceAmount, "You aren't part of the syndicate"); require(block.timestamp > lastRebalance + rebalanceInterval, "Too Soon"); lastRebalance = block.timestamp; IRebalancer(rebalancer).rebalance(callerRewardDivisor, rebalancerDivisor); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; interface ILPStaking { function withdrawFromTo(address owner, uint256 _pid, uint256 _amount, address _to) external; function claim(address _from, uint256 _pid) external; function pendingrena(uint256 pid_, address account_) external view returns(uint256); function addPendingRewards() external; function massUpdatePools() external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; interface IRebalancer { function rebalance(uint16 callerRewardDivisor, uint16 rebalanceDivisor) external; function refill() payable external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ 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; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { 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); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "./IUniswapV2ERC20.sol"; interface IUniswapV2Pair is IUniswapV2ERC20 { // event Approval(address indexed owner, address indexed spender, uint value); // event Transfer(address indexed from, address indexed to, uint value); event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Sync(uint112 reserve0, uint112 reserve1); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); // function name() external pure returns (string memory); // function symbol() external pure returns (string memory); // function decimals() external pure returns (uint8); // function totalSupply() external view returns (uint); // function balanceOf(address owner) external view returns (uint); // function allowance(address owner, address spender) external view returns (uint); // function approve(address spender, uint value) external returns (bool); // function transfer(address to, uint value) external returns (bool); // function transferFrom(address from, address to, uint value) external returns (bool); // function DOMAIN_SEPARATOR() external view returns (bytes32); // function PERMIT_TYPEHASH() external pure returns (bytes32); // function nonces(address owner) external view returns (uint); // function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; interface IUniswapV2ERC20 { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; interface IUniswapV2Router01 { function factory() external view returns (address); function WETH() external view returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"rena_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Claimed","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":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"lpSacrificed","type":"event"},{"inputs":[{"internalType":"uint256","name":"requested_","type":"uint256"},{"internalType":"uint256","name":"pid_","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getClaimPrice","outputs":[{"internalType":"uint256","name":"claimPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getLPPrice","outputs":[{"internalType":"uint256","name":"requiredLP","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid_","type":"uint256"},{"internalType":"address","name":"account_","type":"address"}],"name":"maxClaimable","outputs":[{"internalType":"uint256","name":"claimable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"requested_","type":"uint256"},{"internalType":"uint256","name":"pid_","type":"uint256"}],"name":"sacrificeLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setClaimDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516116c93803806116c98339818101604052602081101561003357600080fd5b5051600061003f6100b1565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b0319166001600160a01b03929092169190911781556001556100b5565b3390565b611605806100c46000396000f3fe60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b1461016c578063a16a06de1461019d578063c3490263146101cd578063c4c94718146101f0578063f2fde38b1461021a578063f64a68921461024d5761009c565b8063057d181d146100a1578063245e5aac146100c857806361aec1e0146100f257806362e2a4ea1461012d578063715018a614610157575b600080fd5b3480156100ad57600080fd5b506100b6610286565b60408051918252519081900360200190f35b3480156100d457600080fd5b506100b6600480360360208110156100eb57600080fd5b503561028c565b3480156100fe57600080fd5b5061012b6004803603604081101561011557600080fd5b506001600160a01b0381351690602001356104c0565b005b34801561013957600080fd5b5061012b6004803603602081101561015057600080fd5b50356105d9565b34801561016357600080fd5b5061012b610696565b34801561017857600080fd5b50610181610754565b604080516001600160a01b039092168252519081900360200190f35b3480156101a957600080fd5b5061012b600480360360408110156101c057600080fd5b5080359060200135610763565b61012b600480360360408110156101e357600080fd5b5080359060200135610afe565b3480156101fc57600080fd5b506100b66004803603602081101561021357600080fd5b5035610f18565b34801561022657600080fd5b5061012b6004803603602081101561023d57600080fd5b50356001600160a01b031661119f565b34801561025957600080fd5b506100b66004803603604081101561027057600080fd5b50803590602001356001600160a01b03166112b3565b60015481565b6000600154600014156102a1575060006104bb565b6002546040805163194b972360e11b815290516000926001600160a01b0316916332972e46916004808301926020929190829003018186803b1580156102e657600080fd5b505afa1580156102fa573d6000803e3d6000fd5b505050506040513d602081101561031057600080fd5b5051600254604080516315ab88c960e31b815290519293506000926001600160a01b039092169163ad5c464891600480820192602092909190829003018186803b15801561035d57600080fd5b505afa158015610371573d6000803e3d6000fd5b505050506040513d602081101561038757600080fd5b5051604080516370a0823160e01b81526001600160a01b038581166004830152915191909216916370a08231916024808301926020929190829003018186803b1580156103d357600080fd5b505afa1580156103e7573d6000803e3d6000fd5b505050506040513d60208110156103fd57600080fd5b5051600254604080516370a0823160e01b81526001600160a01b038681166004830152915193945060009391909216916370a08231916024808301926020929190829003018186803b15801561045257600080fd5b505afa158015610466573d6000803e3d6000fd5b505050506040513d602081101561047c57600080fd5b505190506104948161048e87856113e2565b90611444565b93506104b56104ae6001548661144490919063ffffffff16565b85906114ab565b93505050505b919050565b600260009054906101000a90046001600160a01b03166001600160a01b0316639bf1401c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561050e57600080fd5b505afa158015610522573d6000803e3d6000fd5b505050506040513d602081101561053857600080fd5b50516001600160a01b03163314610596576040805162461bcd60e51b815260206004820152601b60248201527f4f6e6c79205374616b696e672063616e2073657420636c61696d730000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600360205260409020546105b99082611508565b6001600160a01b0390921660009081526003602052604090209190915550565b6105e1611562565b6001600160a01b03166105f2610754565b6001600160a01b03161461064d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b80610691576040805162461bcd60e51b815260206004820152600f60248201526e10d85b9b9bdd081cd95d081d1a185d608a1b604482015290519081900360640190fd5b600155565b61069e611562565b6001600160a01b03166106af610754565b6001600160a01b03161461070a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600254604080516326fc500760e21b815290516000926001600160a01b031691639bf1401c916004808301926020929190829003018186803b1580156107a857600080fd5b505afa1580156107bc573d6000803e3d6000fd5b505050506040513d60208110156107d257600080fd5b50516040805163069d16af60e21b81526004810185905233602482015290519192506000916001600160a01b03841691631a745abc916044808301926020929190829003018186803b15801561082757600080fd5b505afa15801561083b573d6000803e3d6000fd5b505050506040513d602081101561085157600080fd5b505111156108c05760408051635569f64b60e11b81523360048201526024810184905290516001600160a01b0383169163aad3ec9691604480830192600092919082900301818387803b1580156108a757600080fd5b505af11580156108bb573d6000803e3d6000fd5b505050505b3360009081526003602052604090205483111561090e5760405162461bcd60e51b81526004018080602001828103825260228152602001806115676022913960400191505060405180910390fd5b600061091984610f18565b3360009081526003602052604090205490915061093690856114ab565b3360008181526003602090815260408083209490945560025484516301d22ccd60e01b815294516001600160a01b038881169663b42682919695948994909216926301d22ccd92600480840193919291829003018186803b15801561099a57600080fd5b505afa1580156109ae573d6000803e3d6000fd5b505050506040513d60208110156109c457600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039586166004820152602481019490945260448401929092529290921660648201529051608480830192600092919082900301818387803b158015610a2657600080fd5b505af1158015610a3a573d6000803e3d6000fd5b50506002546040805163a9059cbb60e01b81523360048201526024810189905290516001600160a01b03909216935063a9059cbb92506044808201926020929091908290030181600087803b158015610a9257600080fd5b505af1158015610aa6573d6000803e3d6000fd5b505050506040513d6020811015610abc57600080fd5b50506040805182815260208101869052815133927f68ee6da5589f8a430000a87418ac3be9c99da68ad8167d246e7cc64b48a37157928290030190a250505050565b600254604080516326fc500760e21b815290516000926001600160a01b031691639bf1401c916004808301926020929190829003018186803b158015610b4357600080fd5b505afa158015610b57573d6000803e3d6000fd5b505050506040513d6020811015610b6d57600080fd5b50516040805163069d16af60e21b81526004810185905233602482015290519192506000916001600160a01b03841691631a745abc916044808301926020929190829003018186803b158015610bc257600080fd5b505afa158015610bd6573d6000803e3d6000fd5b505050506040513d6020811015610bec57600080fd5b50511115610c5b5760408051635569f64b60e11b81523360048201526024810184905290516001600160a01b0383169163aad3ec9691604480830192600092919082900301818387803b158015610c4257600080fd5b505af1158015610c56573d6000803e3d6000fd5b505050505b33600090815260036020526040902054831115610ca95760405162461bcd60e51b81526004018080602001828103825260228152602001806115676022913960400191505060405180910390fd5b33600090815260036020526040902054610cc390846114ab565b33600090815260036020526040812091909155610cdf8461028c565b905080341015610d36576040805162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420696e70757420616d6f756e7400000000000000604482015290519081900360640190fd5b8015610e1457600260009054906101000a90046001600160a01b03166001600160a01b03166301d22ccd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d8a57600080fd5b505afa158015610d9e573d6000803e3d6000fd5b505050506040513d6020811015610db457600080fd5b50516040805163538e075960e01b815290516001600160a01b039092169163538e0759918491600480830192600092919082900301818588803b158015610dfa57600080fd5b505af1158015610e0e573d6000803e3d6000fd5b50505050505b6002546040805163a9059cbb60e01b81523360048201526024810187905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b158015610e6857600080fd5b505af1158015610e7c573d6000803e3d6000fd5b505050506040513d6020811015610e9257600080fd5b5060009050610ea134836114ab565b90508015610ed857604051339082156108fc029083906000818181858888f19350505050158015610ed6573d6000803e3d6000fd5b505b60408051868152346020820152815133927f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a928290030190a25050505050565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6957600080fd5b505afa158015610f7d573d6000803e3d6000fd5b505050506040513d6020811015610f9357600080fd5b50516002546040805163194b972360e11b815290516001600160a01b03938416936370a082319316916332972e46916004808301926020929190829003018186803b158015610fe157600080fd5b505afa158015610ff5573d6000803e3d6000fd5b505050506040513d602081101561100b57600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152516024808301926020929190829003018186803b15801561105257600080fd5b505afa158015611066573d6000803e3d6000fd5b505050506040513d602081101561107c57600080fd5b50516002546040805163194b972360e11b815290519293506000926001600160a01b03909216916332972e4691600480820192602092909190829003018186803b1580156110c957600080fd5b505afa1580156110dd573d6000803e3d6000fd5b505050506040513d60208110156110f357600080fd5b5051604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561113757600080fd5b505afa15801561114b573d6000803e3d6000fd5b505050506040513d602081101561116157600080fd5b50519050611176600461048e838188876113e2565b92506111976111906001548561144490919063ffffffff16565b84906114ab565b949350505050565b6111a7611562565b6001600160a01b03166111b8610754565b6001600160a01b031614611213576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166112585760405162461bcd60e51b81526004018080602001828103825260268152602001806115896026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600080600260009054906101000a90046001600160a01b03166001600160a01b0316639bf1401c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561130457600080fd5b505afa158015611318573d6000803e3d6000fd5b505050506040513d602081101561132e57600080fd5b50516040805163069d16af60e21b8152600481018790526001600160a01b038681166024830152915192935060009291841691631a745abc91604480820192602092909190829003018186803b15801561138757600080fd5b505afa15801561139b573d6000803e3d6000fd5b505050506040513d60208110156113b157600080fd5b50516001600160a01b0385166000908152600360205260409020549091506113d99082611508565b95945050505050565b6000826113f15750600061143e565b828202828482816113fe57fe5b041461143b5760405162461bcd60e51b81526004018080602001828103825260218152602001806115af6021913960400191505060405180910390fd5b90505b92915050565b600080821161149a576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816114a357fe5b049392505050565b600082821115611502576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561143b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b339056fe596f7520646f6e277420686176652074686174206d75636820746f20636c61696d2e4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205324d5d213a4010b1575d9774f9b97d46e1cdca63c7e45c8c60dddefa9e3311764736f6c6343000706003300000000000000000000000056de8bc61346321d4f2211e3ac3c0a7f00db9b76
Deployed Bytecode
0x60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b1461016c578063a16a06de1461019d578063c3490263146101cd578063c4c94718146101f0578063f2fde38b1461021a578063f64a68921461024d5761009c565b8063057d181d146100a1578063245e5aac146100c857806361aec1e0146100f257806362e2a4ea1461012d578063715018a614610157575b600080fd5b3480156100ad57600080fd5b506100b6610286565b60408051918252519081900360200190f35b3480156100d457600080fd5b506100b6600480360360208110156100eb57600080fd5b503561028c565b3480156100fe57600080fd5b5061012b6004803603604081101561011557600080fd5b506001600160a01b0381351690602001356104c0565b005b34801561013957600080fd5b5061012b6004803603602081101561015057600080fd5b50356105d9565b34801561016357600080fd5b5061012b610696565b34801561017857600080fd5b50610181610754565b604080516001600160a01b039092168252519081900360200190f35b3480156101a957600080fd5b5061012b600480360360408110156101c057600080fd5b5080359060200135610763565b61012b600480360360408110156101e357600080fd5b5080359060200135610afe565b3480156101fc57600080fd5b506100b66004803603602081101561021357600080fd5b5035610f18565b34801561022657600080fd5b5061012b6004803603602081101561023d57600080fd5b50356001600160a01b031661119f565b34801561025957600080fd5b506100b66004803603604081101561027057600080fd5b50803590602001356001600160a01b03166112b3565b60015481565b6000600154600014156102a1575060006104bb565b6002546040805163194b972360e11b815290516000926001600160a01b0316916332972e46916004808301926020929190829003018186803b1580156102e657600080fd5b505afa1580156102fa573d6000803e3d6000fd5b505050506040513d602081101561031057600080fd5b5051600254604080516315ab88c960e31b815290519293506000926001600160a01b039092169163ad5c464891600480820192602092909190829003018186803b15801561035d57600080fd5b505afa158015610371573d6000803e3d6000fd5b505050506040513d602081101561038757600080fd5b5051604080516370a0823160e01b81526001600160a01b038581166004830152915191909216916370a08231916024808301926020929190829003018186803b1580156103d357600080fd5b505afa1580156103e7573d6000803e3d6000fd5b505050506040513d60208110156103fd57600080fd5b5051600254604080516370a0823160e01b81526001600160a01b038681166004830152915193945060009391909216916370a08231916024808301926020929190829003018186803b15801561045257600080fd5b505afa158015610466573d6000803e3d6000fd5b505050506040513d602081101561047c57600080fd5b505190506104948161048e87856113e2565b90611444565b93506104b56104ae6001548661144490919063ffffffff16565b85906114ab565b93505050505b919050565b600260009054906101000a90046001600160a01b03166001600160a01b0316639bf1401c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561050e57600080fd5b505afa158015610522573d6000803e3d6000fd5b505050506040513d602081101561053857600080fd5b50516001600160a01b03163314610596576040805162461bcd60e51b815260206004820152601b60248201527f4f6e6c79205374616b696e672063616e2073657420636c61696d730000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600360205260409020546105b99082611508565b6001600160a01b0390921660009081526003602052604090209190915550565b6105e1611562565b6001600160a01b03166105f2610754565b6001600160a01b03161461064d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b80610691576040805162461bcd60e51b815260206004820152600f60248201526e10d85b9b9bdd081cd95d081d1a185d608a1b604482015290519081900360640190fd5b600155565b61069e611562565b6001600160a01b03166106af610754565b6001600160a01b03161461070a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600254604080516326fc500760e21b815290516000926001600160a01b031691639bf1401c916004808301926020929190829003018186803b1580156107a857600080fd5b505afa1580156107bc573d6000803e3d6000fd5b505050506040513d60208110156107d257600080fd5b50516040805163069d16af60e21b81526004810185905233602482015290519192506000916001600160a01b03841691631a745abc916044808301926020929190829003018186803b15801561082757600080fd5b505afa15801561083b573d6000803e3d6000fd5b505050506040513d602081101561085157600080fd5b505111156108c05760408051635569f64b60e11b81523360048201526024810184905290516001600160a01b0383169163aad3ec9691604480830192600092919082900301818387803b1580156108a757600080fd5b505af11580156108bb573d6000803e3d6000fd5b505050505b3360009081526003602052604090205483111561090e5760405162461bcd60e51b81526004018080602001828103825260228152602001806115676022913960400191505060405180910390fd5b600061091984610f18565b3360009081526003602052604090205490915061093690856114ab565b3360008181526003602090815260408083209490945560025484516301d22ccd60e01b815294516001600160a01b038881169663b42682919695948994909216926301d22ccd92600480840193919291829003018186803b15801561099a57600080fd5b505afa1580156109ae573d6000803e3d6000fd5b505050506040513d60208110156109c457600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039586166004820152602481019490945260448401929092529290921660648201529051608480830192600092919082900301818387803b158015610a2657600080fd5b505af1158015610a3a573d6000803e3d6000fd5b50506002546040805163a9059cbb60e01b81523360048201526024810189905290516001600160a01b03909216935063a9059cbb92506044808201926020929091908290030181600087803b158015610a9257600080fd5b505af1158015610aa6573d6000803e3d6000fd5b505050506040513d6020811015610abc57600080fd5b50506040805182815260208101869052815133927f68ee6da5589f8a430000a87418ac3be9c99da68ad8167d246e7cc64b48a37157928290030190a250505050565b600254604080516326fc500760e21b815290516000926001600160a01b031691639bf1401c916004808301926020929190829003018186803b158015610b4357600080fd5b505afa158015610b57573d6000803e3d6000fd5b505050506040513d6020811015610b6d57600080fd5b50516040805163069d16af60e21b81526004810185905233602482015290519192506000916001600160a01b03841691631a745abc916044808301926020929190829003018186803b158015610bc257600080fd5b505afa158015610bd6573d6000803e3d6000fd5b505050506040513d6020811015610bec57600080fd5b50511115610c5b5760408051635569f64b60e11b81523360048201526024810184905290516001600160a01b0383169163aad3ec9691604480830192600092919082900301818387803b158015610c4257600080fd5b505af1158015610c56573d6000803e3d6000fd5b505050505b33600090815260036020526040902054831115610ca95760405162461bcd60e51b81526004018080602001828103825260228152602001806115676022913960400191505060405180910390fd5b33600090815260036020526040902054610cc390846114ab565b33600090815260036020526040812091909155610cdf8461028c565b905080341015610d36576040805162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420696e70757420616d6f756e7400000000000000604482015290519081900360640190fd5b8015610e1457600260009054906101000a90046001600160a01b03166001600160a01b03166301d22ccd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d8a57600080fd5b505afa158015610d9e573d6000803e3d6000fd5b505050506040513d6020811015610db457600080fd5b50516040805163538e075960e01b815290516001600160a01b039092169163538e0759918491600480830192600092919082900301818588803b158015610dfa57600080fd5b505af1158015610e0e573d6000803e3d6000fd5b50505050505b6002546040805163a9059cbb60e01b81523360048201526024810187905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b158015610e6857600080fd5b505af1158015610e7c573d6000803e3d6000fd5b505050506040513d6020811015610e9257600080fd5b5060009050610ea134836114ab565b90508015610ed857604051339082156108fc029083906000818181858888f19350505050158015610ed6573d6000803e3d6000fd5b505b60408051868152346020820152815133927f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a928290030190a25050505050565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6957600080fd5b505afa158015610f7d573d6000803e3d6000fd5b505050506040513d6020811015610f9357600080fd5b50516002546040805163194b972360e11b815290516001600160a01b03938416936370a082319316916332972e46916004808301926020929190829003018186803b158015610fe157600080fd5b505afa158015610ff5573d6000803e3d6000fd5b505050506040513d602081101561100b57600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152516024808301926020929190829003018186803b15801561105257600080fd5b505afa158015611066573d6000803e3d6000fd5b505050506040513d602081101561107c57600080fd5b50516002546040805163194b972360e11b815290519293506000926001600160a01b03909216916332972e4691600480820192602092909190829003018186803b1580156110c957600080fd5b505afa1580156110dd573d6000803e3d6000fd5b505050506040513d60208110156110f357600080fd5b5051604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561113757600080fd5b505afa15801561114b573d6000803e3d6000fd5b505050506040513d602081101561116157600080fd5b50519050611176600461048e838188876113e2565b92506111976111906001548561144490919063ffffffff16565b84906114ab565b949350505050565b6111a7611562565b6001600160a01b03166111b8610754565b6001600160a01b031614611213576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166112585760405162461bcd60e51b81526004018080602001828103825260268152602001806115896026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600080600260009054906101000a90046001600160a01b03166001600160a01b0316639bf1401c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561130457600080fd5b505afa158015611318573d6000803e3d6000fd5b505050506040513d602081101561132e57600080fd5b50516040805163069d16af60e21b8152600481018790526001600160a01b038681166024830152915192935060009291841691631a745abc91604480820192602092909190829003018186803b15801561138757600080fd5b505afa15801561139b573d6000803e3d6000fd5b505050506040513d60208110156113b157600080fd5b50516001600160a01b0385166000908152600360205260409020549091506113d99082611508565b95945050505050565b6000826113f15750600061143e565b828202828482816113fe57fe5b041461143b5760405162461bcd60e51b81526004018080602001828103825260218152602001806115af6021913960400191505060405180910390fd5b90505b92915050565b600080821161149a576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816114a357fe5b049392505050565b600082821115611502576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561143b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b339056fe596f7520646f6e277420686176652074686174206d75636820746f20636c61696d2e4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205324d5d213a4010b1575d9774f9b97d46e1cdca63c7e45c8c60dddefa9e3311764736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000056de8bc61346321d4f2211e3ac3c0a7f00db9b76
-----Decoded View---------------
Arg [0] : rena_ (address): 0x56de8BC61346321D4F2211e3aC3c0A7F00dB9b76
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000056de8bc61346321d4f2211e3ac3c0a7f00db9b76
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.07445 | 9,788.7605 | $728.77 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.