More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 53 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 13677441 | 1139 days ago | IN | 0 ETH | 0.01856788 | ||||
Deposit | 13400825 | 1182 days ago | IN | 0 ETH | 0.00994502 | ||||
Deposit | 13304220 | 1197 days ago | IN | 0 ETH | 0.00926705 | ||||
Withdraw | 13278586 | 1201 days ago | IN | 0 ETH | 0.00636563 | ||||
Withdraw | 13268159 | 1203 days ago | IN | 0 ETH | 0.00564661 | ||||
Deposit | 13268145 | 1203 days ago | IN | 0 ETH | 0.00803664 | ||||
Deposit | 13256510 | 1205 days ago | IN | 0 ETH | 0.0073158 | ||||
Deposit | 13252186 | 1205 days ago | IN | 0 ETH | 0.00788596 | ||||
Withdraw | 13246733 | 1206 days ago | IN | 0 ETH | 0.00629308 | ||||
Deposit | 13245533 | 1207 days ago | IN | 0 ETH | 0.01074967 | ||||
Deposit | 13237214 | 1208 days ago | IN | 0 ETH | 0.00724758 | ||||
Deposit | 13237210 | 1208 days ago | IN | 0 ETH | 0.01081782 | ||||
Deposit | 13235298 | 1208 days ago | IN | 0 ETH | 0.00641196 | ||||
Deposit | 13229499 | 1209 days ago | IN | 0 ETH | 0.00578598 | ||||
Withdraw | 13228473 | 1209 days ago | IN | 0 ETH | 0.00436029 | ||||
Deposit | 13228172 | 1209 days ago | IN | 0 ETH | 0.00671447 | ||||
Withdraw | 13214574 | 1211 days ago | IN | 0 ETH | 0.00732845 | ||||
Withdraw | 13214268 | 1211 days ago | IN | 0 ETH | 0.0050469 | ||||
Claim | 13214259 | 1211 days ago | IN | 0 ETH | 0.00543521 | ||||
Claim | 13207313 | 1212 days ago | IN | 0 ETH | 0.00467397 | ||||
Deposit | 13206384 | 1213 days ago | IN | 0 ETH | 0.00797844 | ||||
Deposit | 13206340 | 1213 days ago | IN | 0 ETH | 0.01154019 | ||||
Deposit | 13205749 | 1213 days ago | IN | 0 ETH | 0.00810417 | ||||
Deposit | 13205702 | 1213 days ago | IN | 0 ETH | 0.00748392 | ||||
Deposit | 13204822 | 1213 days ago | IN | 0 ETH | 0.00913373 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MGGStaking
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-09-11 */ // Sources flattened with hardhat v2.6.3 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // 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; } } // File @openzeppelin/contracts/token/ERC20/[email protected] 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); } // File @openzeppelin/contracts/math/[email protected] 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; } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.2 <0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { 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/contracts/token/ERC20/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/interface/IDetailedERC20.sol pragma solidity ^0.6.12; interface IDetailedERC20 is IERC20 { function name() external returns (string memory); function symbol() external returns (string memory); function decimals() external returns (uint8); } // File contracts/interface/IMintableERC20.sol pragma solidity ^0.6.12; interface IMintableERC20 is IDetailedERC20{ function mint(address _recipient, uint256 _amount) external; } // File contracts/MGGStaking.sol pragma solidity 0.6.12; contract MGGStaking is ReentrancyGuard{ using SafeMath for uint256; using SafeERC20 for IMintableERC20; struct UserInfo { uint256 amount; // How many mgg tokens the user has provided. uint256 rewardDebt; // Reward debt. } IMintableERC20 public mggToken; address public collector; /// @dev The address of the account which currently has administrative capabilities over this contract. address public governance; address public pendingGovernance; /// @dev A flag indicating if the contract has been initialized yet. bool public initialized; uint256 public mggRewardRate; uint256 lastRewardBlock; //Last block number that mgg distribution occurs. uint256 private _accMGGRewardPerBalance; uint256 public totalDeposited; mapping (address => UserInfo) userInfo; event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event PendingGovernanceUpdated(address pendingGovernance); event GovernanceUpdated(address governance); event CollectorUpdated(address collector); event RewardClaimed(address indexed user, uint256 amount); event MGGRewardRateUpdated(uint256 rewardRate); // solium-disable-next-line constructor(address _governance) public { require(_governance != address(0), "MGGStaking: governance address cannot be 0x0"); governance = _governance; } /* * Owner methods */ function initialize(address _mggToken, uint256 _mggRewardRate, address _collector) external onlyGovernance { require(!initialized, "MGGStaking: already initialized"); require(_collector != address(0), "MGGStaking: collector address cannot be 0x0"); mggToken = IMintableERC20(_mggToken); mggRewardRate = _mggRewardRate; collector = _collector; initialized = true; lastRewardBlock = block.number; } /// @dev Checks that the contract is in an initialized state. /// /// This is used over a modifier to reduce the size of the contract modifier expectInitialized() { require(initialized, "MGGStaking: not initialized."); _; } modifier onlyGovernance() { require(msg.sender == governance, "MGGStaking: only governance"); _; } /// @dev Sets the governance. /// /// This function can only called by the current governance. /// /// @param _pendingGovernance the new pending governance. function setPendingGovernance(address _pendingGovernance) external onlyGovernance { require(_pendingGovernance != address(0), "MGGStaking: pending governance address cannot be 0x0"); pendingGovernance = _pendingGovernance; emit PendingGovernanceUpdated(_pendingGovernance); } function acceptGovernance() external { require(msg.sender == pendingGovernance, "MGGStaking: only pending governance"); address _pendingGovernance = pendingGovernance; governance = _pendingGovernance; emit GovernanceUpdated(_pendingGovernance); } /// @dev Sets the address of the collector /// /// @param _collector address of the new collector function setCollector(address _collector) external onlyGovernance { require(_collector != address(0), "MGGStaking: collector address cannot be 0x0."); collector = _collector; emit CollectorUpdated(_collector); } function setMGGRewardRate(uint256 _mggRewardRate) external onlyGovernance { collectReward(); mggRewardRate = _mggRewardRate; emit MGGRewardRateUpdated(_mggRewardRate); } function deposit(uint256 _amount) external nonReentrant expectInitialized claimReward(msg.sender){ UserInfo storage user = userInfo[msg.sender]; if (_amount > 0) { mggToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); totalDeposited = totalDeposited.add(_amount); } emit Deposit(msg.sender, _amount); } function withdraw(uint256 amount) external nonReentrant expectInitialized{ _withdraw(amount); } function _withdraw(uint256 amount) internal claimReward(msg.sender) { UserInfo storage user = userInfo[msg.sender]; require(amount <= user.amount, "MGGStaking: withdraw too much"); totalDeposited = totalDeposited.sub(amount); user.amount = user.amount - amount; mggToken.safeTransfer(msg.sender, amount); emit Withdraw(msg.sender, amount); } // solium-disable-next-line no-empty-blocks function claim() external expectInitialized nonReentrant claimReward(msg.sender) { } // Return block rewards over the given _from (inclusive) to _to (inclusive) block. function getBlockReward(uint256 _from, uint256 _to) public view returns (uint256) { uint256 to = _to; uint256 from = _from; if (from > to) { return 0; } uint256 rewardPerBlock = mggRewardRate; uint256 totalRewards = (to.sub(from)).mul(rewardPerBlock); return totalRewards; } function collectReward() public expectInitialized { if (block.number <= lastRewardBlock) { return; } if (totalDeposited == 0) { lastRewardBlock = block.number; return; } uint256 mggReward = getBlockReward(lastRewardBlock, block.number); mggToken.mint(address(this), mggReward); _accMGGRewardPerBalance = _accMGGRewardPerBalance.add(mggReward.mul(1e18).div(totalDeposited)); lastRewardBlock = block.number; uint256 newReward = mggToken.balanceOf(collector); if (newReward == 0) { return; } mggToken.transferFrom(collector, address(this), newReward); _accMGGRewardPerBalance = _accMGGRewardPerBalance.add(newReward.mul(1e18).div(totalDeposited)); } function pendingReward(address account) public view returns (uint256) { UserInfo storage user = userInfo[account]; uint256 newAccMGGPerBalance = _accMGGRewardPerBalance; uint256 pending; if(totalDeposited == 0){ return 0; } if (user.amount > 0) { uint256 newReward = mggToken.balanceOf(collector); newAccMGGPerBalance = newAccMGGPerBalance.add(newReward.mul(1e18).div(totalDeposited)); pending = user.amount.mul(newAccMGGPerBalance).div(1e18).sub(user.rewardDebt); } if (block.number > lastRewardBlock) { uint256 fixedReward = getBlockReward(lastRewardBlock, block.number); newAccMGGPerBalance = newAccMGGPerBalance.add(fixedReward.mul(1e18).div(totalDeposited)); pending = user.amount.mul(newAccMGGPerBalance).div(1e18).sub(user.rewardDebt); } return pending; } function userDeposited(address account) public view returns (uint256){ UserInfo storage user = userInfo[account]; return user.amount; } modifier claimReward(address _account) { collectReward(); UserInfo storage user = userInfo[_account]; uint256 mggPending = 0; if (user.amount > 0) { mggPending = user.amount.mul(_accMGGRewardPerBalance).div(1e18).sub(user.rewardDebt); if (mggPending > 0) { _safeMGGTransfer(msg.sender, mggPending); } } _; // user.amount may changed. user.rewardDebt = user.amount.mul(_accMGGRewardPerBalance).div(1e18); RewardClaimed(_account,mggPending); } function _safeMGGTransfer(address _to, uint256 _amount) internal { if (_amount > 0) { uint256 mggBal = mggToken.balanceOf(address(this)); if (_amount > mggBal) { mggToken.transfer(_to, mggBal); } else { mggToken.transfer(_to, _amount); } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collector","type":"address"}],"name":"CollectorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"governance","type":"address"}],"name":"GovernanceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardRate","type":"uint256"}],"name":"MGGRewardRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pendingGovernance","type":"address"}],"name":"PendingGovernanceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getBlockReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mggToken","type":"address"},{"internalType":"uint256","name":"_mggRewardRate","type":"uint256"},{"internalType":"address","name":"_collector","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mggRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mggToken","outputs":[{"internalType":"contract IMintableERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collector","type":"address"}],"name":"setCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mggRewardRate","type":"uint256"}],"name":"setMGGRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingGovernance","type":"address"}],"name":"setPendingGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"userDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051611a31380380611a318339818101604052602081101561003357600080fd5b505160016000556001600160a01b03811661007f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611a05602c913960400191505060405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055611957806100ae6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063b65d9370116100ad578063e364ee8911610071578063e364ee891461029e578063f39c38a0146102a6578063f40f0f52146102ae578063fb5b82d0146102d4578063ff50abdc146102fa57610121565b8063b65d937014610203578063b6b55f2514610226578063bd66804e14610243578063c350a1b514610260578063e18cdc101461029657610121565b80634e71d92d116100f45780634e71d92d1461018f57806354c5aee1146101975780635aa6e6751461019f5780638092be4a146101c3578063913e77ad146101fb57610121565b80630abb603514610126578063158ef93e1461014e578063238efcbc1461016a5780632e1a7d4d14610172575b600080fd5b61014c6004803603602081101561013c57600080fd5b50356001600160a01b0316610302565b005b6101566103e8565b604080519115158252519081900360200190f35b61014c6103f8565b61014c6004803603602081101561018857600080fd5b5035610498565b61014c610552565b61014c6106db565b6101a761092c565b604080516001600160a01b039092168252519081900360200190f35b6101e9600480360360208110156101d957600080fd5b50356001600160a01b031661093b565b60408051918252519081900360200190f35b6101a761095a565b6101e96004803603604081101561021957600080fd5b5080359060200135610969565b61014c6004803603602081101561023c57600080fd5b50356109a6565b61014c6004803603602081101561025957600080fd5b5035610ba7565b61014c6004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359160409091013516610c37565b6101a7610d73565b6101e9610d82565b6101a7610d88565b6101e9600480360360208110156102c457600080fd5b50356001600160a01b0316610d97565b61014c600480360360208110156102ea57600080fd5b50356001600160a01b0316610f1d565b6101e9611003565b6003546001600160a01b0316331461034f576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b6001600160a01b0381166103945760405162461bcd60e51b81526004018080602001828103825260348152602001806118ee6034913960400191505060405180910390fd5b600480546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fc9e2377236eab4280090ce8f2317332649736d92f00dcf20a8dd6684ec5e78399181900360200190a150565b600454600160a01b900460ff1681565b6004546001600160a01b031633146104415760405162461bcd60e51b81526004018080602001828103825260238152602001806118096023913960400191505060405180910390fd5b600454600380546001600160a01b0319166001600160a01b0390921691821790556040805182815290517f9d3e522e1e47a2f6009739342b9cc7b252a1888154e843ab55ee1c81745795ab9181900360200190a150565b600260005414156104f0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055600454600160a01b900460ff16610541576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b61054a81611009565b506001600055565b600454600160a01b900460ff1661059e576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b600260005414156105f6576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055336106046106db565b6001600160a01b03811660009081526009602052604081208054909190156106715761065f8260010154610659670de0b6b3a764000061065360075487600001546111a390919063ffffffff16565b90611203565b9061126a565b905080156106715761067133826112c7565b600754825461068d91670de0b6b3a764000091610653916111a3565b60018301556040805182815290516001600160a01b038516917f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241919081900360200190a25050600160005550565b600454600160a01b900460ff16610727576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b60065443116107355761092a565b600854610745574360065561092a565b600061075360065443610969565b600154604080516340c10f1960e01b81523060048201526024810184905290519293506001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b1580156107a957600080fd5b505af11580156107bd573d6000803e3d6000fd5b50506008546107e792506107de915061065384670de0b6b3a76400006111a3565b6007549061145f565b60075543600655600154600254604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d602081101561086c57600080fd5b505190508061087c57505061092a565b600154600254604080516323b872dd60e01b81526001600160a01b03928316600482015230602482015260448101859052905191909216916323b872dd9160648083019260209291908290030181600087803b1580156108db57600080fd5b505af11580156108ef573d6000803e3d6000fd5b505050506040513d602081101561090557600080fd5b5050600854610924906107de9061065384670de0b6b3a76400006111a3565b60075550505b565b6003546001600160a01b031681565b6001600160a01b0381166000908152600960205260409020545b919050565b6002546001600160a01b031681565b6000818381811115610980576000925050506109a0565b600554600061099982610993868661126a565b906111a3565b9450505050505b92915050565b600260005414156109fe576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055600454600160a01b900460ff16610a4f576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b33610a586106db565b6001600160a01b0381166000908152600960205260408120805490919015610ab957610aa78260010154610659670de0b6b3a764000061065360075487600001546111a390919063ffffffff16565b90508015610ab957610ab933826112c7565b3360009081526009602052604090208415610b0557600154610ae6906001600160a01b03163330886114b9565b8054610af2908661145f565b8155600854610b01908661145f565b6008555b60408051868152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2506007548254610b5891670de0b6b3a764000091610653916111a3565b60018301556040805182815290516001600160a01b038516917f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241919081900360200190a2505060016000555050565b6003546001600160a01b03163314610bf4576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b610bfc6106db565b60058190556040805182815290517f7760b1886a13c1688e1412899c93d0f6584a85b5b6b8dcfce62f244f3babe3d49181900360200190a150565b6003546001600160a01b03163314610c84576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b600454600160a01b900460ff1615610ce3576040805162461bcd60e51b815260206004820152601f60248201527f4d47475374616b696e673a20616c726561647920696e697469616c697a656400604482015290519081900360640190fd5b6001600160a01b038116610d285760405162461bcd60e51b815260040180806020018281038252602b815260200180611899602b913960400191505060405180910390fd5b600180546001600160a01b039485166001600160a01b031991821617909155600592909255600280549190931691161790556004805460ff60a01b1916600160a01b17905543600655565b6001546001600160a01b031681565b60055481565b6004546001600160a01b031681565b6001600160a01b03811660009081526009602052604081206007546008548390610dc75760009350505050610955565b825415610ea657600154600254604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b158015610e2257600080fd5b505afa158015610e36573d6000803e3d6000fd5b505050506040513d6020811015610e4c57600080fd5b5051600854909150610e7590610e6e9061065384670de0b6b3a76400006111a3565b849061145f565b9250610ea28460010154610659670de0b6b3a76400006106538789600001546111a390919063ffffffff16565b9150505b600654431115610f15576000610ebe60065443610969565b9050610ee4610e6e600854610653670de0b6b3a7640000856111a390919063ffffffff16565b9250610f118460010154610659670de0b6b3a76400006106538789600001546111a390919063ffffffff16565b9150505b949350505050565b6003546001600160a01b03163314610f6a576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b6001600160a01b038116610faf5760405162461bcd60e51b815260040180806020018281038252602c81526020018061184c602c913960400191505060405180910390fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f14308adaec1375a4db1882d93c05b25b2a86d3d0dd683f8f94a3a55190d1d35b9181900360200190a150565b60085481565b336110126106db565b6001600160a01b0381166000908152600960205260408120805490919015611073576110618260010154610659670de0b6b3a764000061065360075487600001546111a390919063ffffffff16565b905080156110735761107333826112c7565b33600090815260096020526040902080548511156110d8576040805162461bcd60e51b815260206004820152601d60248201527f4d47475374616b696e673a20776974686472617720746f6f206d756368000000604482015290519081900360640190fd5b6008546110e5908661126a565b60085580548590038155600154611106906001600160a01b03163387611519565b60408051868152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250600754825461115991670de0b6b3a764000091610653916111a3565b60018301556040805182815290516001600160a01b038516917f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241919081900360200190a250505050565b6000826111b2575060006109a0565b828202828482816111bf57fe5b04146111fc5760405162461bcd60e51b81526004018080602001828103825260218152602001806118786021913960400191505060405180910390fd5b9392505050565b6000808211611259576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161126257fe5b049392505050565b6000828211156112c1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b801561145b57600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561131857600080fd5b505afa15801561132c573d6000803e3d6000fd5b505050506040513d602081101561134257600080fd5b50519050808211156113d6576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156113a457600080fd5b505af11580156113b8573d6000803e3d6000fd5b505050506040513d60208110156113ce57600080fd5b506114599050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561142c57600080fd5b505af1158015611440573d6000803e3d6000fd5b505050506040513d602081101561145657600080fd5b50505b505b5050565b6000828201838110156111fc576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611513908590611567565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114599084905b60606115bc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116189092919063ffffffff16565b805190915015611459578080602001905160208110156115db57600080fd5b50516114595760405162461bcd60e51b815260040180806020018281038252602a8152602001806118c4602a913960400191505060405180910390fd5b6060610f1584846000858561162c8561173e565b61167d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116bc5780518252601f19909201916020918201910161169d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461171e576040519150601f19603f3d011682016040523d82523d6000602084013e611723565b606091505b5091509150611733828286611744565b979650505050505050565b3b151590565b606083156117535750816111fc565b8251156117635782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117ad578181015183820152602001611795565b50505050905090810190601f1680156117da5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4d47475374616b696e673a206f6e6c7920676f7665726e616e636500000000004d47475374616b696e673a206f6e6c792070656e64696e6720676f7665726e616e63654d47475374616b696e673a206e6f7420696e697469616c697a65642e000000004d47475374616b696e673a20636f6c6c6563746f7220616464726573732063616e6e6f74206265203078302e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d47475374616b696e673a20636f6c6c6563746f7220616464726573732063616e6e6f74206265203078305361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d47475374616b696e673a2070656e64696e6720676f7665726e616e636520616464726573732063616e6e6f7420626520307830a26469706673582212202dcf5ee1c955f2e7d074585928d3e25c2aaa3ca8f9054fb58360ab3a885b96a464736f6c634300060c00334d47475374616b696e673a20676f7665726e616e636520616464726573732063616e6e6f7420626520307830000000000000000000000000954d24a9fb20afe9de86b9052175b0266e0f71f0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063b65d9370116100ad578063e364ee8911610071578063e364ee891461029e578063f39c38a0146102a6578063f40f0f52146102ae578063fb5b82d0146102d4578063ff50abdc146102fa57610121565b8063b65d937014610203578063b6b55f2514610226578063bd66804e14610243578063c350a1b514610260578063e18cdc101461029657610121565b80634e71d92d116100f45780634e71d92d1461018f57806354c5aee1146101975780635aa6e6751461019f5780638092be4a146101c3578063913e77ad146101fb57610121565b80630abb603514610126578063158ef93e1461014e578063238efcbc1461016a5780632e1a7d4d14610172575b600080fd5b61014c6004803603602081101561013c57600080fd5b50356001600160a01b0316610302565b005b6101566103e8565b604080519115158252519081900360200190f35b61014c6103f8565b61014c6004803603602081101561018857600080fd5b5035610498565b61014c610552565b61014c6106db565b6101a761092c565b604080516001600160a01b039092168252519081900360200190f35b6101e9600480360360208110156101d957600080fd5b50356001600160a01b031661093b565b60408051918252519081900360200190f35b6101a761095a565b6101e96004803603604081101561021957600080fd5b5080359060200135610969565b61014c6004803603602081101561023c57600080fd5b50356109a6565b61014c6004803603602081101561025957600080fd5b5035610ba7565b61014c6004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359160409091013516610c37565b6101a7610d73565b6101e9610d82565b6101a7610d88565b6101e9600480360360208110156102c457600080fd5b50356001600160a01b0316610d97565b61014c600480360360208110156102ea57600080fd5b50356001600160a01b0316610f1d565b6101e9611003565b6003546001600160a01b0316331461034f576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b6001600160a01b0381166103945760405162461bcd60e51b81526004018080602001828103825260348152602001806118ee6034913960400191505060405180910390fd5b600480546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fc9e2377236eab4280090ce8f2317332649736d92f00dcf20a8dd6684ec5e78399181900360200190a150565b600454600160a01b900460ff1681565b6004546001600160a01b031633146104415760405162461bcd60e51b81526004018080602001828103825260238152602001806118096023913960400191505060405180910390fd5b600454600380546001600160a01b0319166001600160a01b0390921691821790556040805182815290517f9d3e522e1e47a2f6009739342b9cc7b252a1888154e843ab55ee1c81745795ab9181900360200190a150565b600260005414156104f0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055600454600160a01b900460ff16610541576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b61054a81611009565b506001600055565b600454600160a01b900460ff1661059e576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b600260005414156105f6576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055336106046106db565b6001600160a01b03811660009081526009602052604081208054909190156106715761065f8260010154610659670de0b6b3a764000061065360075487600001546111a390919063ffffffff16565b90611203565b9061126a565b905080156106715761067133826112c7565b600754825461068d91670de0b6b3a764000091610653916111a3565b60018301556040805182815290516001600160a01b038516917f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241919081900360200190a25050600160005550565b600454600160a01b900460ff16610727576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b60065443116107355761092a565b600854610745574360065561092a565b600061075360065443610969565b600154604080516340c10f1960e01b81523060048201526024810184905290519293506001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b1580156107a957600080fd5b505af11580156107bd573d6000803e3d6000fd5b50506008546107e792506107de915061065384670de0b6b3a76400006111a3565b6007549061145f565b60075543600655600154600254604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d602081101561086c57600080fd5b505190508061087c57505061092a565b600154600254604080516323b872dd60e01b81526001600160a01b03928316600482015230602482015260448101859052905191909216916323b872dd9160648083019260209291908290030181600087803b1580156108db57600080fd5b505af11580156108ef573d6000803e3d6000fd5b505050506040513d602081101561090557600080fd5b5050600854610924906107de9061065384670de0b6b3a76400006111a3565b60075550505b565b6003546001600160a01b031681565b6001600160a01b0381166000908152600960205260409020545b919050565b6002546001600160a01b031681565b6000818381811115610980576000925050506109a0565b600554600061099982610993868661126a565b906111a3565b9450505050505b92915050565b600260005414156109fe576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055600454600160a01b900460ff16610a4f576040805162461bcd60e51b815260206004820152601c602482015260008051602061182c833981519152604482015290519081900360640190fd5b33610a586106db565b6001600160a01b0381166000908152600960205260408120805490919015610ab957610aa78260010154610659670de0b6b3a764000061065360075487600001546111a390919063ffffffff16565b90508015610ab957610ab933826112c7565b3360009081526009602052604090208415610b0557600154610ae6906001600160a01b03163330886114b9565b8054610af2908661145f565b8155600854610b01908661145f565b6008555b60408051868152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2506007548254610b5891670de0b6b3a764000091610653916111a3565b60018301556040805182815290516001600160a01b038516917f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241919081900360200190a2505060016000555050565b6003546001600160a01b03163314610bf4576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b610bfc6106db565b60058190556040805182815290517f7760b1886a13c1688e1412899c93d0f6584a85b5b6b8dcfce62f244f3babe3d49181900360200190a150565b6003546001600160a01b03163314610c84576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b600454600160a01b900460ff1615610ce3576040805162461bcd60e51b815260206004820152601f60248201527f4d47475374616b696e673a20616c726561647920696e697469616c697a656400604482015290519081900360640190fd5b6001600160a01b038116610d285760405162461bcd60e51b815260040180806020018281038252602b815260200180611899602b913960400191505060405180910390fd5b600180546001600160a01b039485166001600160a01b031991821617909155600592909255600280549190931691161790556004805460ff60a01b1916600160a01b17905543600655565b6001546001600160a01b031681565b60055481565b6004546001600160a01b031681565b6001600160a01b03811660009081526009602052604081206007546008548390610dc75760009350505050610955565b825415610ea657600154600254604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b158015610e2257600080fd5b505afa158015610e36573d6000803e3d6000fd5b505050506040513d6020811015610e4c57600080fd5b5051600854909150610e7590610e6e9061065384670de0b6b3a76400006111a3565b849061145f565b9250610ea28460010154610659670de0b6b3a76400006106538789600001546111a390919063ffffffff16565b9150505b600654431115610f15576000610ebe60065443610969565b9050610ee4610e6e600854610653670de0b6b3a7640000856111a390919063ffffffff16565b9250610f118460010154610659670de0b6b3a76400006106538789600001546111a390919063ffffffff16565b9150505b949350505050565b6003546001600160a01b03163314610f6a576040805162461bcd60e51b815260206004820152601b60248201526000805160206117e9833981519152604482015290519081900360640190fd5b6001600160a01b038116610faf5760405162461bcd60e51b815260040180806020018281038252602c81526020018061184c602c913960400191505060405180910390fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f14308adaec1375a4db1882d93c05b25b2a86d3d0dd683f8f94a3a55190d1d35b9181900360200190a150565b60085481565b336110126106db565b6001600160a01b0381166000908152600960205260408120805490919015611073576110618260010154610659670de0b6b3a764000061065360075487600001546111a390919063ffffffff16565b905080156110735761107333826112c7565b33600090815260096020526040902080548511156110d8576040805162461bcd60e51b815260206004820152601d60248201527f4d47475374616b696e673a20776974686472617720746f6f206d756368000000604482015290519081900360640190fd5b6008546110e5908661126a565b60085580548590038155600154611106906001600160a01b03163387611519565b60408051868152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250600754825461115991670de0b6b3a764000091610653916111a3565b60018301556040805182815290516001600160a01b038516917f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241919081900360200190a250505050565b6000826111b2575060006109a0565b828202828482816111bf57fe5b04146111fc5760405162461bcd60e51b81526004018080602001828103825260218152602001806118786021913960400191505060405180910390fd5b9392505050565b6000808211611259576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161126257fe5b049392505050565b6000828211156112c1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b801561145b57600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561131857600080fd5b505afa15801561132c573d6000803e3d6000fd5b505050506040513d602081101561134257600080fd5b50519050808211156113d6576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156113a457600080fd5b505af11580156113b8573d6000803e3d6000fd5b505050506040513d60208110156113ce57600080fd5b506114599050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561142c57600080fd5b505af1158015611440573d6000803e3d6000fd5b505050506040513d602081101561145657600080fd5b50505b505b5050565b6000828201838110156111fc576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611513908590611567565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114599084905b60606115bc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116189092919063ffffffff16565b805190915015611459578080602001905160208110156115db57600080fd5b50516114595760405162461bcd60e51b815260040180806020018281038252602a8152602001806118c4602a913960400191505060405180910390fd5b6060610f1584846000858561162c8561173e565b61167d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116bc5780518252601f19909201916020918201910161169d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461171e576040519150601f19603f3d011682016040523d82523d6000602084013e611723565b606091505b5091509150611733828286611744565b979650505050505050565b3b151590565b606083156117535750816111fc565b8251156117635782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117ad578181015183820152602001611795565b50505050905090810190601f1680156117da5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4d47475374616b696e673a206f6e6c7920676f7665726e616e636500000000004d47475374616b696e673a206f6e6c792070656e64696e6720676f7665726e616e63654d47475374616b696e673a206e6f7420696e697469616c697a65642e000000004d47475374616b696e673a20636f6c6c6563746f7220616464726573732063616e6e6f74206265203078302e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d47475374616b696e673a20636f6c6c6563746f7220616464726573732063616e6e6f74206265203078305361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d47475374616b696e673a2070656e64696e6720676f7665726e616e636520616464726573732063616e6e6f7420626520307830a26469706673582212202dcf5ee1c955f2e7d074585928d3e25c2aaa3ca8f9054fb58360ab3a885b96a464736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000954d24a9fb20afe9de86b9052175b0266e0f71f0
-----Decoded View---------------
Arg [0] : _governance (address): 0x954d24a9fB20AFE9de86B9052175B0266e0F71f0
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000954d24a9fb20afe9de86b9052175b0266e0f71f0
Deployed Bytecode Sourcemap
25418:8286:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28059:309;;;;;;;;;;;;;;;;-1:-1:-1;28059:309:0;-1:-1:-1;;;;;28059:309:0;;:::i;:::-;;26019:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;28376:291;;;:::i;29704:107::-;;;;;;;;;;;;;;;;-1:-1:-1;29704:107:0;;:::i;30286:89::-;;;:::i;30841:826::-;;;:::i;25874:25::-;;;:::i;:::-;;;;-1:-1:-1;;;;;25874:25:0;;;;;;;;;;;;;;32609:154;;;;;;;;;;;;;;;;-1:-1:-1;32609:154:0;-1:-1:-1;;;;;32609:154:0;;:::i;:::-;;;;;;;;;;;;;;;;25732:24;;;:::i;30472:361::-;;;;;;;;;;;;;;;;-1:-1:-1;30472:361:0;;;;;;;:::i;29250:444::-;;;;;;;;;;;;;;;;-1:-1:-1;29250:444:0;;:::i;29039:201::-;;;;;;;;;;;;;;;;-1:-1:-1;29039:201:0;;:::i;26953:518::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26953:518:0;;;;;;;;;;;;;;;;;:::i;25693:30::-;;;:::i;26051:28::-;;;:::i;25906:32::-;;;:::i;31675:926::-;;;;;;;;;;;;;;;;-1:-1:-1;31675:926:0;-1:-1:-1;;;;;31675:926:0;;:::i;28788:243::-;;;;;;;;;;;;;;;;-1:-1:-1;28788:243:0;-1:-1:-1;;;;;28788:243:0;;:::i;26212:29::-;;;:::i;28059:309::-;27807:10;;-1:-1:-1;;;;;27807:10:0;27793;:24;27785:64;;;;;-1:-1:-1;;;27785:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27785:64:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28160:32:0;::::1;28152:97;;;;-1:-1:-1::0;;;28152:97:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28260:17;:38:::0;;-1:-1:-1;;;;;28260:38:0;::::1;-1:-1:-1::0;;;;;;28260:38:0;;::::1;::::0;::::1;::::0;;;28316:44:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;28059:309:::0;:::o;26019:23::-;;;-1:-1:-1;;;26019:23:0;;;;;:::o;28376:291::-;28446:17;;-1:-1:-1;;;;;28446:17:0;28432:10;:31;28424:79;;;;-1:-1:-1;;;28424:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28545:17;;28573:10;:31;;-1:-1:-1;;;;;;28573:31:0;-1:-1:-1;;;;;28545:17:0;;;28573:31;;;;;28622:37;;;;;;;;;;;;;;;;;28376:291;:::o;29704:107::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;27676:11:::1;::::0;-1:-1:-1;;;27676:11:0;::::1;;;27668:52;;;::::0;;-1:-1:-1;;;27668:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;27668:52:0;;;;;;;;;;;;;::::1;;29786:17:::2;29796:6;29786:9;:17::i;:::-;-1:-1:-1::0;1809:1:0;2771:7;:22;29704:107::o;30286:89::-;27676:11;;-1:-1:-1;;;27676:11:0;;;;27668:52;;;;;-1:-1:-1;;;27668:52:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27668:52:0;;;;;;;;;;;;;;;1853:1:::1;2459:7;;:19;;2451:63;;;::::0;;-1:-1:-1;;;2451:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1853:1;2592:7;:18:::0;30355:10:::2;32821:15;:13;:15::i;:::-;-1:-1:-1::0;;;;;32871:18:0;::::2;32847:21;32871:18:::0;;;:8:::2;:18;::::0;;;;32937:11;;32871:18;;32847:21;32937:15;32933:239:::2;;32982:71;33037:4;:15;;;32982:50;33027:4;32982:40;32998:23;;32982:4;:11;;;:15;;:40;;;;:::i;:::-;:44:::0;::::2;:50::i;:::-;:54:::0;::::2;:71::i;:::-;32969:84:::0;-1:-1:-1;33072:14:0;;33068:93:::2;;33105:40;33122:10;33134;33105:16;:40::i;:::-;33256:23;::::0;33240:11;;:50:::2;::::0;33285:4:::2;::::0;33240:40:::2;::::0;:15:::2;:40::i;:50::-;33222:15;::::0;::::2;:68:::0;33301:34:::2;::::0;;;;;;;-1:-1:-1;;;;;33301:34:0;::::2;::::0;::::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;1809:1:0::1;2771:7;:22:::0;-1:-1:-1;30286:89:0:o;30841:826::-;27676:11;;-1:-1:-1;;;27676:11:0;;;;27668:52;;;;;-1:-1:-1;;;27668:52:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27668:52:0;;;;;;;;;;;;;;;30922:15:::1;;30906:12;:31;30902:70;;30954:7;;30902:70;30988:14;::::0;30984:103:::1;;31042:12;31024:15;:30:::0;31069:7:::1;;30984:103;31099:17;31119:45;31134:15;;31151:12;31119:14;:45::i;:::-;31175:8;::::0;:39:::1;::::0;;-1:-1:-1;;;31175:39:0;;31197:4:::1;31175:39;::::0;::::1;::::0;;;;;;;;;31099:65;;-1:-1:-1;;;;;;31175:8:0;;::::1;::::0;:13:::1;::::0;:39;;;;;:8:::1;::::0;:39;;;;;;;;:8;;:39;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;31303:14:0::1;::::0;31251:68:::1;::::0;-1:-1:-1;31279:39:0::1;::::0;-1:-1:-1;31279:19:0::1;:9:::0;31293:4:::1;31279:13;:19::i;:39::-;31251:23;::::0;;:27:::1;:68::i;:::-;31225:23;:94:::0;31348:12:::1;31330:15;:30:::0;-1:-1:-1;31393:8:0;31412:9:::1;::::0;31393:29:::1;::::0;;-1:-1:-1;;;31393:29:0;;-1:-1:-1;;;;;31412:9:0;;::::1;31393:29;::::0;::::1;::::0;;;-1:-1:-1;;31393:8:0;;;::::1;::::0;:18:::1;::::0;:29;;;;;::::1;::::0;;;;;;;;;:8;:29;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;31393:29:0;;-1:-1:-1;31437:14:0;31433:53:::1;;31468:7;;;;31433:53;31496:8;::::0;31518:9:::1;::::0;31496:58:::1;::::0;;-1:-1:-1;;;31496:58:0;;-1:-1:-1;;;;;31518:9:0;;::::1;31496:58;::::0;::::1;::::0;31537:4:::1;31496:58:::0;;;;;;;;;;;;:8;;;::::1;::::0;:21:::1;::::0;:58;;;;;::::1;::::0;;;;;;;;:8:::1;::::0;:58;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;31643:14:0::1;::::0;31591:68:::1;::::0;31619:39:::1;::::0;:19:::1;:9:::0;31633:4:::1;31619:13;:19::i;31591:68::-;31565:23;:94:::0;-1:-1:-1;;27731:1:0::1;30841:826::o:0;25874:25::-;;;-1:-1:-1;;;;;25874:25:0;;:::o;32609:154::-;-1:-1:-1;;;;;32711:17:0;;32670:7;32711:17;;;:8;:17;;;;;32744:11;32609:154;;;;:::o;25732:24::-;;;-1:-1:-1;;;;;25732:24:0;;:::o;30472:361::-;30545:7;30578:3;30607:5;30629:9;;;30625:50;;;30662:1;30655:8;;;;;;30625:50;30712:13;;30687:22;30759:34;30712:13;30760:12;:2;30767:4;30760:6;:12::i;:::-;30759:18;;:34::i;:::-;30736:57;-1:-1:-1;;;;;30472:361:0;;;;;:::o;29250:444::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;27676:11:::1;::::0;-1:-1:-1;;;27676:11:0;::::1;;;27668:52;;;::::0;;-1:-1:-1;;;27668:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;27668:52:0;;;;;;;;;;;;;::::1;;29336:10:::2;32821:15;:13;:15::i;:::-;-1:-1:-1::0;;;;;32871:18:0;::::2;32847:21;32871:18:::0;;;:8:::2;:18;::::0;;;;32937:11;;32871:18;;32847:21;32937:15;32933:239:::2;;32982:71;33037:4;:15;;;32982:50;33027:4;32982:40;32998:23;;32982:4;:11;;;:15;;:40;;;;:::i;:71::-;32969:84:::0;-1:-1:-1;33072:14:0;;33068:93:::2;;33105:40;33122:10;33134;33105:16;:40::i;:::-;29391:10:::3;29358:21;29382:20:::0;;;:8:::3;:20;::::0;;;;29419:11;;29415:226:::3;;29447:8;::::0;:70:::3;::::0;-1:-1:-1;;;;;29447:8:0::3;29481:10;29502:4;29509:7:::0;29447:25:::3;:70::i;:::-;29546:11:::0;;:24:::3;::::0;29562:7;29546:15:::3;:24::i;:::-;29532:38:::0;;29602:14:::3;::::0;:27:::3;::::0;29621:7;29602:18:::3;:27::i;:::-;29585:14;:44:::0;29415:226:::3;29658:28;::::0;;;;;;;29666:10:::3;::::0;29658:28:::3;::::0;;;;;::::3;::::0;;::::3;-1:-1:-1::0;33256:23:0::2;::::0;33240:11;;:50:::2;::::0;33285:4:::2;::::0;33240:40:::2;::::0;:15:::2;:40::i;:50::-;33222:15;::::0;::::2;:68:::0;33301:34:::2;::::0;;;;;;;-1:-1:-1;;;;;33301:34:0;::::2;::::0;::::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;1809:1:0;2771:7;:22;-1:-1:-1;;29250:444:0:o;29039:201::-;27807:10;;-1:-1:-1;;;;;27807:10:0;27793;:24;27785:64;;;;;-1:-1:-1;;;27785:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27785:64:0;;;;;;;;;;;;;;;29124:15:::1;:13;:15::i;:::-;29150:13;:30:::0;;;29196:36:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;29039:201:::0;:::o;26953:518::-;27807:10;;-1:-1:-1;;;;;27807:10:0;27793;:24;27785:64;;;;;-1:-1:-1;;;27785:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27785:64:0;;;;;;;;;;;;;;;27130:11:::1;::::0;-1:-1:-1;;;27130:11:0;::::1;;;27129:12;27121:56;;;::::0;;-1:-1:-1;;;27121:56:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;27196:24:0;::::1;27188:80;;;;-1:-1:-1::0;;;27188:80:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27281:8;:36:::0;;-1:-1:-1;;;;;27281:36:0;;::::1;-1:-1:-1::0;;;;;;27281:36:0;;::::1;;::::0;;;27328:13:::1;:30:::0;;;;27371:9:::1;:22:::0;;;;;::::1;::::0;::::1;;::::0;;27404:11:::1;:18:::0;;-1:-1:-1;;;;27404:18:0::1;-1:-1:-1::0;;;27404:18:0::1;::::0;;27451:12:::1;27433:15;:30:::0;26953:518::o;25693:30::-;;;-1:-1:-1;;;;;25693:30:0;;:::o;26051:28::-;;;;:::o;25906:32::-;;;-1:-1:-1;;;;;25906:32:0;;:::o;31675:926::-;-1:-1:-1;;;;;31780:17:0;;31736:7;31780:17;;;:8;:17;;;;;31836:23;;31897:14;;31736:7;;31894:52;;31935:1;31928:8;;;;;;;31894:52;31960:11;;:15;31956:282;;32010:8;;32029:9;;32010:29;;;-1:-1:-1;;;32010:29:0;;-1:-1:-1;;;;;32029:9:0;;;32010:29;;;;;;31990:17;;32010:8;;;;;:18;;:29;;;;;;;;;;;;;;;:8;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32010:29:0;32122:14;;32010:29;;-1:-1:-1;32074:64:0;;32098:39;;:19;32010:29;32112:4;32098:13;:19::i;:39::-;32074:19;;:23;:64::i;:::-;32052:86;;32161:67;32212:4;:15;;;32161:46;32202:4;32161:36;32177:19;32161:4;:11;;;:15;;:36;;;;:::i;:67::-;32151:77;;31956:282;;32267:15;;32252:12;:30;32248:319;;;32297:19;32319:45;32334:15;;32351:12;32319:14;:45::i;:::-;32297:67;;32401:66;32425:41;32451:14;;32425:21;32441:4;32425:11;:15;;:21;;;;:::i;32401:66::-;32379:88;;32490:67;32541:4;:15;;;32490:46;32531:4;32490:36;32506:19;32490:4;:11;;;:15;;:36;;;;:::i;:67::-;32480:77;;32248:319;;32586:7;31675:926;-1:-1:-1;;;;31675:926:0:o;28788:243::-;27807:10;;-1:-1:-1;;;;;27807:10:0;27793;:24;27785:64;;;;;-1:-1:-1;;;27785:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27785:64:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28873:24:0;::::1;28865:81;;;;-1:-1:-1::0;;;28865:81:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28957:9;:22:::0;;-1:-1:-1;;;;;28957:22:0;::::1;-1:-1:-1::0;;;;;;28957:22:0;;::::1;::::0;::::1;::::0;;;28995:28:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;28788:243:::0;:::o;26212:29::-;;;;:::o;29819:410::-;29875:10;32821:15;:13;:15::i;:::-;-1:-1:-1;;;;;32871:18:0;;32847:21;32871:18;;;:8;:18;;;;;32937:11;;32871:18;;32847:21;32937:15;32933:239;;32982:71;33037:4;:15;;;32982:50;33027:4;32982:40;32998:23;;32982:4;:11;;;:15;;:40;;;;:::i;:71::-;32969:84;-1:-1:-1;33072:14:0;;33068:93;;33105:40;33122:10;33134;33105:16;:40::i;:::-;29933:10:::1;29900:21;29924:20:::0;;;:8:::1;:20;::::0;;;;29975:11;;29965:21;::::1;;29957:63;;;::::0;;-1:-1:-1;;;29957:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;30050:14;::::0;:26:::1;::::0;30069:6;30050:18:::1;:26::i;:::-;30033:14;:43:::0;30101:11;;:20;;::::1;30087:34:::0;;-1:-1:-1;30134:8:0;:41:::1;::::0;-1:-1:-1;;;;;30134:8:0::1;30156:10;30115:6:::0;30134:21:::1;:41::i;:::-;30193:28;::::0;;;;;;;30202:10:::1;::::0;30193:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;33256:23:0;;33240:11;;:50;;33285:4;;33240:40;;:15;:40::i;:50::-;33222:15;;;:68;33301:34;;;;;;;;-1:-1:-1;;;;;33301:34:0;;;;;;;;;;;;;29819:410;;;;:::o;9303:220::-;9361:7;9385:6;9381:20;;-1:-1:-1;9400:1:0;9393:8;;9381:20;9424:5;;;9428:1;9424;:5;:1;9448:5;;;;;:10;9440:56;;;;-1:-1:-1;;;9440:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9514:1;9303:220;-1:-1:-1;;;9303:220:0:o;10001:153::-;10059:7;10091:1;10087;:5;10079:44;;;;;-1:-1:-1;;;10079:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10145:1;10141;:5;;;;;;;10001:153;-1:-1:-1;;;10001:153:0:o;8886:158::-;8944:7;8977:1;8972;:6;;8964:49;;;;;-1:-1:-1;;;8964:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9031:5:0;;;8886:158::o;33351:350::-;33431:11;;33427:267;;33476:8;;:33;;;-1:-1:-1;;;33476:33:0;;33503:4;33476:33;;;;;;33459:14;;-1:-1:-1;;;;;33476:8:0;;:18;;:33;;;;;;;;;;;;;;:8;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33476:33:0;;-1:-1:-1;33528:16:0;;;33524:159;;;33565:8;;:30;;;-1:-1:-1;;;33565:30:0;;-1:-1:-1;;;;;33565:30:0;;;;;;;;;;;;;;;:8;;;;;:17;;:30;;;;;;;;;;;;;;:8;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33524:159:0;;-1:-1:-1;33524:159:0;;33636:8;;:31;;;-1:-1:-1;;;33636:31:0;;-1:-1:-1;;;;;33636:31:0;;;;;;;;;;;;;;;:8;;;;;:17;;:31;;;;;;;;;;;;;;:8;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33524:159:0;33427:267;;33351:350;;:::o;8424:179::-;8482:7;8514:5;;;8538:6;;;;8530:46;;;;;-1:-1:-1;;;8530:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;21981:205;22109:68;;;-1:-1:-1;;;;;22109:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22109:68:0;-1:-1:-1;;;22109:68:0;;;22082:96;;22102:5;;22082:19;:96::i;:::-;21981:205;;;;:::o;21796:177::-;21906:58;;;-1:-1:-1;;;;;21906:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21906:58:0;-1:-1:-1;;;21906:58:0;;;21879:86;;21899:5;;24101:761;24525:23;24551:69;24579:4;24551:69;;;;;;;;;;;;;;;;;24559:5;-1:-1:-1;;;;;24551:27:0;;;:69;;;;;:::i;:::-;24635:17;;24525:95;;-1:-1:-1;24635:21:0;24631:224;;24777:10;24766:30;;;;;;;;;;;;;;;-1:-1:-1;24766:30:0;24758:85;;;;-1:-1:-1;;;24758:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16787:195;16890:12;16922:52;16944:6;16952:4;16958:1;16961:12;16890;18091:18;18102:6;18091:10;:18::i;:::-;18083:60;;;;;-1:-1:-1;;;18083:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18217:12;18231:23;18258:6;-1:-1:-1;;;;;18258:11:0;18278:5;18286:4;18258:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18258:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18216:75;;;;18309:52;18327:7;18336:10;18348:12;18309:17;:52::i;:::-;18302:59;17839:530;-1:-1:-1;;;;;;;17839:530:0:o;13869:422::-;14236:20;14275:8;;;13869:422::o;20379:742::-;20494:12;20523:7;20519:595;;;-1:-1:-1;20554:10:0;20547:17;;20519:595;20668:17;;:21;20664:439;;20931:10;20925:17;20992:15;20979:10;20975:2;20971:19;20964:44;20879:148;21074:12;21067:20;;-1:-1:-1;;;21067:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://2dcf5ee1c955f2e7d074585928d3e25c2aaa3ca8f9054fb58360ab3a885b96a4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.