Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Multi Chain
Multichain Addresses
1 address found via
Latest 25 from a total of 132 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Distribute Rewar... | 13760634 | 658 days 20 hrs ago | IN | 0 ETH | 0.00889156 | ||||
Distribute Rewar... | 13753617 | 659 days 22 hrs ago | IN | 0 ETH | 0.0756675 | ||||
Distribute Rewar... | 13708456 | 667 days 4 hrs ago | IN | 0 ETH | 0.04483886 | ||||
Distribute Rewar... | 13664243 | 674 days 4 hrs ago | IN | 0 ETH | 0.04942616 | ||||
Distribute Rewar... | 13619989 | 681 days 5 hrs ago | IN | 0 ETH | 0.00915478 | ||||
Distribute Rewar... | 13619669 | 681 days 6 hrs ago | IN | 0 ETH | 0.08482972 | ||||
Distribute Rewar... | 13573367 | 688 days 13 hrs ago | IN | 0 ETH | 0.06893253 | ||||
Distribute Rewar... | 13529627 | 695 days 9 hrs ago | IN | 0 ETH | 0.05874806 | ||||
Distribute Rewar... | 13484174 | 702 days 12 hrs ago | IN | 0 ETH | 0.03037048 | ||||
Distribute Rewar... | 13439569 | 709 days 12 hrs ago | IN | 0 ETH | 0.0430438 | ||||
Distribute Rewar... | 13393680 | 716 days 17 hrs ago | IN | 0 ETH | 0.03325605 | ||||
Distribute Rewar... | 13351214 | 723 days 9 hrs ago | IN | 0 ETH | 0.03990726 | ||||
Distribute Rewar... | 13306650 | 730 days 8 hrs ago | IN | 0 ETH | 0.03473283 | ||||
Distribute Rewar... | 13261219 | 737 days 9 hrs ago | IN | 0 ETH | 0.03073503 | ||||
Distribute Rewar... | 13238098 | 740 days 23 hrs ago | IN | 0 ETH | 0.01058686 | ||||
Distribute Rewar... | 13236074 | 741 days 6 hrs ago | IN | 0 ETH | 0.01026283 | ||||
Distribute Rewar... | 13216563 | 744 days 6 hrs ago | IN | 0 ETH | 0.02817497 | ||||
Distribute Rewar... | 13177949 | 750 days 6 hrs ago | IN | 0 ETH | 0.03964158 | ||||
Distribute Rewar... | 13124174 | 758 days 13 hrs ago | IN | 0 ETH | 0.03786677 | ||||
Distribute Rewar... | 13078478 | 765 days 15 hrs ago | IN | 0 ETH | 0.01448246 | ||||
Distribute Rewar... | 13035998 | 772 days 4 hrs ago | IN | 0 ETH | 0.01981581 | ||||
Distribute Rewar... | 12989792 | 779 days 8 hrs ago | IN | 0 ETH | 0.01474578 | ||||
Distribute Rewar... | 12945053 | 786 days 7 hrs ago | IN | 0 ETH | 0.01279759 | ||||
Distribute Rewar... | 12899213 | 793 days 13 hrs ago | IN | 0 ETH | 0.02500056 | ||||
Distribute Rewar... | 12855517 | 800 days 9 hrs ago | IN | 0 ETH | 0.00761096 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x3cDF83...D49457E8 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
RewardsDistributor
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion, GNU GPLv3 license, Audited
Contract Source Code (Solidity)Audit Report
/** *Submitted for verification at Etherscan.io on 2020-07-30 */ pragma solidity 0.5.16; 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); } interface IRewardsDistributionRecipient { function notifyRewardAmount(uint256 reward) external; function getRewardToken() external view returns (IERC20); } contract InitializableModuleKeys { // Governance // Phases bytes32 internal KEY_GOVERNANCE; // 2.x bytes32 internal KEY_STAKING; // 1.2 bytes32 internal KEY_PROXY_ADMIN; // 1.0 // mStable bytes32 internal KEY_ORACLE_HUB; // 1.2 bytes32 internal KEY_MANAGER; // 1.2 bytes32 internal KEY_RECOLLATERALISER; // 2.x bytes32 internal KEY_META_TOKEN; // 1.1 bytes32 internal KEY_SAVINGS_MANAGER; // 1.0 /** * @dev Initialize function for upgradable proxy contracts. This function should be called * via Proxy to initialize constants in the Proxy contract. */ function _initialize() internal { // keccak256() values are evaluated only once at the time of this function call. // Hence, no need to assign hard-coded values to these variables. KEY_GOVERNANCE = keccak256("Governance"); KEY_STAKING = keccak256("Staking"); KEY_PROXY_ADMIN = keccak256("ProxyAdmin"); KEY_ORACLE_HUB = keccak256("OracleHub"); KEY_MANAGER = keccak256("Manager"); KEY_RECOLLATERALISER = keccak256("Recollateraliser"); KEY_META_TOKEN = keccak256("MetaToken"); KEY_SAVINGS_MANAGER = keccak256("SavingsManager"); } } interface INexus { function governor() external view returns (address); function getModule(bytes32 key) external view returns (address); function proposeModule(bytes32 _key, address _addr) external; function cancelProposedModule(bytes32 _key) external; function acceptProposedModule(bytes32 _key) external; function acceptProposedModules(bytes32[] calldata _keys) external; function requestLockModule(bytes32 _key) external; function cancelLockModule(bytes32 _key) external; function lockModule(bytes32 _key) external; } contract InitializableModule is InitializableModuleKeys { INexus public nexus; /** * @dev Modifier to allow function calls only from the Governor. */ modifier onlyGovernor() { require(msg.sender == _governor(), "Only governor can execute"); _; } /** * @dev Modifier to allow function calls only from the Governance. * Governance is either Governor address or Governance address. */ modifier onlyGovernance() { require( msg.sender == _governor() || msg.sender == _governance(), "Only governance can execute" ); _; } /** * @dev Modifier to allow function calls only from the ProxyAdmin. */ modifier onlyProxyAdmin() { require( msg.sender == _proxyAdmin(), "Only ProxyAdmin can execute" ); _; } /** * @dev Modifier to allow function calls only from the Manager. */ modifier onlyManager() { require(msg.sender == _manager(), "Only manager can execute"); _; } /** * @dev Initialization function for upgradable proxy contracts * @param _nexus Nexus contract address */ function _initialize(address _nexus) internal { require(_nexus != address(0), "Nexus address is zero"); nexus = INexus(_nexus); InitializableModuleKeys._initialize(); } /** * @dev Returns Governor address from the Nexus * @return Address of Governor Contract */ function _governor() internal view returns (address) { return nexus.governor(); } /** * @dev Returns Governance Module address from the Nexus * @return Address of the Governance (Phase 2) */ function _governance() internal view returns (address) { return nexus.getModule(KEY_GOVERNANCE); } /** * @dev Return Staking Module address from the Nexus * @return Address of the Staking Module contract */ function _staking() internal view returns (address) { return nexus.getModule(KEY_STAKING); } /** * @dev Return ProxyAdmin Module address from the Nexus * @return Address of the ProxyAdmin Module contract */ function _proxyAdmin() internal view returns (address) { return nexus.getModule(KEY_PROXY_ADMIN); } /** * @dev Return MetaToken Module address from the Nexus * @return Address of the MetaToken Module contract */ function _metaToken() internal view returns (address) { return nexus.getModule(KEY_META_TOKEN); } /** * @dev Return OracleHub Module address from the Nexus * @return Address of the OracleHub Module contract */ function _oracleHub() internal view returns (address) { return nexus.getModule(KEY_ORACLE_HUB); } /** * @dev Return Manager Module address from the Nexus * @return Address of the Manager Module contract */ function _manager() internal view returns (address) { return nexus.getModule(KEY_MANAGER); } /** * @dev Return SavingsManager Module address from the Nexus * @return Address of the SavingsManager Module contract */ function _savingsManager() internal view returns (address) { return nexus.getModule(KEY_SAVINGS_MANAGER); } /** * @dev Return Recollateraliser Module address from the Nexus * @return Address of the Recollateraliser Module contract (Phase 2) */ function _recollateraliser() internal view returns (address) { return nexus.getModule(KEY_RECOLLATERALISER); } } contract InitializableGovernableWhitelist is InitializableModule { event Whitelisted(address indexed _address); mapping(address => bool) public whitelist; /** * @dev Modifier to allow function calls only from the whitelisted address. */ modifier onlyWhitelisted() { require(whitelist[msg.sender], "Not a whitelisted address"); _; } /** * @dev Initialization function for upgradable proxy contracts * @param _nexus Nexus contract address * @param _whitelisted Array of whitelisted addresses. */ function _initialize( address _nexus, address[] memory _whitelisted ) internal { InitializableModule._initialize(_nexus); require(_whitelisted.length > 0, "Empty whitelist array"); for(uint256 i = 0; i < _whitelisted.length; i++) { _addWhitelist(_whitelisted[i]); } } /** * @dev Adds a new whitelist address * @param _address Address to add in whitelist */ function _addWhitelist(address _address) internal { require(_address != address(0), "Address is zero"); require(! whitelist[_address], "Already whitelisted"); whitelist[_address] = true; emit Whitelisted(_address); } } /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @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]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } 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)); } 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. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "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"); } } } /** * @title RewardsDistributor * @author Stability Labs Pty. Ltd. * @notice RewardsDistributor allows Fund Managers to send rewards (usually in MTA) * to specified Reward Recipients. */ contract RewardsDistributor is InitializableGovernableWhitelist { using SafeERC20 for IERC20; event RemovedFundManager(address indexed _address); event DistributedReward(address funder, address recipient, address rewardToken, uint256 amount); /** @dev Recipient is a module, governed by mStable governance */ constructor( address _nexus, address[] memory _fundManagers ) public { InitializableGovernableWhitelist._initialize(_nexus, _fundManagers); } /** * @dev Allows the mStable governance to add a new FundManager * @param _address FundManager to add */ function addFundManager(address _address) external onlyGovernor { _addWhitelist(_address); } /** * @dev Allows the mStable governance to remove inactive FundManagers * @param _address FundManager to remove */ function removeFundManager(address _address) external onlyGovernor { require(_address != address(0), "Address is zero"); require(whitelist[_address], "Address is not whitelisted"); whitelist[_address] = false; emit RemovedFundManager(_address); } /** * @dev Distributes reward tokens to list of recipients and notifies them * of the transfer. Only callable by FundManagers * @param _recipients Array of Reward recipients to credit * @param _amounts Amounts of reward tokens to distribute */ function distributeRewards( IRewardsDistributionRecipient[] calldata _recipients, uint256[] calldata _amounts ) external onlyWhitelisted { uint256 len = _recipients.length; require(len > 0, "Must choose recipients"); require(len == _amounts.length, "Mismatching inputs"); for(uint i = 0; i < len; i++){ uint256 amount = _amounts[i]; IRewardsDistributionRecipient recipient = _recipients[i]; // Send the RewardToken to recipient IERC20 rewardToken = recipient.getRewardToken(); rewardToken.safeTransferFrom(msg.sender, address(recipient), amount); // Only after successfull tx - notify the contract of the new funds recipient.notifyRewardAmount(amount); emit DistributedReward(msg.sender, address(recipient), address(rewardToken), amount); } } }
Contract Security Audit
- Consensys Diligence - August 10th, 2020 - Security Audit Report
[{"inputs":[{"internalType":"address","name":"_nexus","type":"address"},{"internalType":"address[]","name":"_fundManagers","type":"address[]"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"funder","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DistributedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"RemovedFundManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"Whitelisted","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addFundManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IRewardsDistributionRecipient[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"distributeRewards","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nexus","outputs":[{"internalType":"contract INexus","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeFundManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063143ba4f31461005c578063179c4055146101205780639b19251a14610146578063a3f5c1d214610180578063d9b54946146101a4575b600080fd5b61011e6004803603604081101561007257600080fd5b81019060208101813564010000000081111561008d57600080fd5b82018360208201111561009f57600080fd5b803590602001918460208302840111640100000000831117156100c157600080fd5b9193909290916020810190356401000000008111156100df57600080fd5b8201836020820111156100f157600080fd5b8035906020019184602083028401116401000000008311171561011357600080fd5b5090925090506101ca565b005b61011e6004803603602081101561013657600080fd5b50356001600160a01b031661044b565b61016c6004803603602081101561015c57600080fd5b50356001600160a01b03166105b7565b604080519115158252519081900360200190f35b6101886105cc565b604080516001600160a01b039092168252519081900360200190f35b61011e600480360360208110156101ba57600080fd5b50356001600160a01b03166105db565b3360009081526009602052604090205460ff1661022e576040805162461bcd60e51b815260206004820152601960248201527f4e6f7420612077686974656c6973746564206164647265737300000000000000604482015290519081900360640190fd5b828061027a576040805162461bcd60e51b81526020600482015260166024820152754d7573742063686f6f736520726563697069656e747360501b604482015290519081900360640190fd5b8082146102c3576040805162461bcd60e51b81526020600482015260126024820152714d69736d61746368696e6720696e7075747360701b604482015290519081900360640190fd5b60005b818110156104435760008484838181106102dc57fe5b90506020020135905060008787848181106102f357fe5b905060200201356001600160a01b031690506000816001600160a01b03166369940d796040518163ffffffff1660e01b815260040160206040518083038186803b15801561034057600080fd5b505afa158015610354573d6000803e3d6000fd5b505050506040513d602081101561036a57600080fd5b505190506103896001600160a01b03821633848663ffffffff61065016565b816001600160a01b0316633c6b16ab846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156103cf57600080fd5b505af11580156103e3573d6000803e3d6000fd5b5050604080513381526001600160a01b0380871660208301528516818301526060810187905290517fc6eb799f06bdbd6f7d197f2d64c11daeb1bc8ef26fda18f912f066f2a148f4549350908190036080019150a15050506001016102c6565b505050505050565b6104536106b0565b6001600160a01b0316336001600160a01b0316146104b4576040805162461bcd60e51b81526020600482015260196024820152784f6e6c7920676f7665726e6f722063616e206578656375746560381b604482015290519081900360640190fd5b6001600160a01b038116610501576040805162461bcd60e51b815260206004820152600f60248201526e41646472657373206973207a65726f60881b604482015290519081900360640190fd5b6001600160a01b03811660009081526009602052604090205460ff1661056e576040805162461bcd60e51b815260206004820152601a60248201527f41646472657373206973206e6f742077686974656c6973746564000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260096020526040808220805460ff19169055517fd5031334bc3e0470dfa530d3222eb2107f55f3b11fd4c07c008cdbef0d528ee79190a250565b60096020526000908152604090205460ff1681565b6008546001600160a01b031681565b6105e36106b0565b6001600160a01b0316336001600160a01b031614610644576040805162461bcd60e51b81526020600482015260196024820152784f6e6c7920676f7665726e6f722063616e206578656375746560381b604482015290519081900360640190fd5b61064d81610726565b50565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526106aa908590610823565b50505050565b6008546040805163030d028960e21b815290516000926001600160a01b031691630c340a24916004808301926020929190829003018186803b1580156106f557600080fd5b505afa158015610709573d6000803e3d6000fd5b505050506040513d602081101561071f57600080fd5b5051905090565b6001600160a01b038116610773576040805162461bcd60e51b815260206004820152600f60248201526e41646472657373206973207a65726f60881b604482015290519081900360640190fd5b6001600160a01b03811660009081526009602052604090205460ff16156107d7576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481dda1a5d195b1a5cdd1959606a1b604482015290519081900360640190fd5b6001600160a01b038116600081815260096020526040808220805460ff19166001179055517faab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a549190a250565b610835826001600160a01b03166109db565b610886576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106108c45780518252601f1990920191602091820191016108a5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610926576040519150601f19603f3d011682016040523d82523d6000602084013e61092b565b606091505b509150915081610982576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156106aa5780806020019051602081101561099e57600080fd5b50516106aa5760405162461bcd60e51b815260040180806020018281038252602a815260200180610c10602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610a0f57508115155b949350505050565b610a2082610aa3565b6000815111610a6e576040805162461bcd60e51b8152602060048201526015602482015274456d7074792077686974656c69737420617272617960581b604482015290519081900360640190fd5b60005b8151811015610a9e57610a96828281518110610a8957fe5b6020026020010151610726565b600101610a71565b505050565b6001600160a01b038116610af6576040805162461bcd60e51b81526020600482015260156024820152744e657875732061646472657373206973207a65726f60581b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b03831617905561064d5b6040805169476f7665726e616e636560b01b8152815190819003600a9081018220600055665374616b696e6760c81b82528251918290036007908101832060015569283937bc3ca0b236b4b760b11b835283519283900390910182206002556827b930b1b632a43ab160b91b8252825191829003600990810183206003556626b0b730b3b2b960c91b8352835192839003820183206004556f2932b1b7b63630ba32b930b634b9b2b960811b835283519283900360100183206005556826b2ba30aa37b5b2b760b91b83528351928390030182206006556d29b0bb34b733b9a6b0b730b3b2b960911b8252915190819003600e019020905556fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820c8b56e96bbcb2bb3173960108852fecc4b1e5fed5f2aefbdc6af94c3a917f63464736f6c63430005100032
Deployed Bytecode Sourcemap
21913:2502:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21913:2502:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23466:946;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23466:946:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;23466:946:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;23466:946:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;23466:946:0;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;23466:946:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;23466:946:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;23466:946:0;;-1:-1:-1;23466:946:0;-1:-1:-1;23466:946:0;:::i;:::-;;22860:314;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22860:314:0;-1:-1:-1;;;;;22860:314:0;;:::i;8659:41::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8659:41:0;-1:-1:-1;;;;;8659:41:0;;:::i;:::-;;;;;;;;;;;;;;;;;;4842:19;;;:::i;:::-;;;;-1:-1:-1;;;;;4842:19:0;;;;;;;;;;;;;;22583:129;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22583:129:0;-1:-1:-1;;;;;22583:129:0;;:::i;23466:946::-;8864:10;8854:21;;;;:9;:21;;;;;;;;8846:59;;;;;-1:-1:-1;;;8846:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23674:11;23711:7;23703:42;;;;;-1:-1:-1;;;23703:42:0;;;;;;;;;;;;-1:-1:-1;;;23703:42:0;;;;;;;;;;;;;;;23764:22;;;23756:53;;;;;-1:-1:-1;;;23756:53:0;;;;;;;;;;;;-1:-1:-1;;;23756:53:0;;;;;;;;;;;;;;;23826:6;23822:583;23842:3;23838:1;:7;23822:583;;;23866:14;23883:8;;23892:1;23883:11;;;;;;;;;;;;;23866:28;;23909:39;23951:11;;23963:1;23951:14;;;;;;;;;;;;;-1:-1:-1;;;;;23951:14:0;23909:56;;24030:18;24051:9;-1:-1:-1;;;;;24051:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24051:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24051:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24051:26:0;;-1:-1:-1;24092:68:0;-1:-1:-1;;;;;24092:28:0;;24121:10;24141:9;24153:6;24092:68;:28;:68;:::i;:::-;24256:9;-1:-1:-1;;;;;24256:28:0;;24285:6;24256:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24256:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;24314:79:0;;;24332:10;24314:79;;-1:-1:-1;;;;;24314:79:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24314:79:0;;;;;;;-1:-1:-1;24314:79:0;-1:-1:-1;;;23847:3:0;;23822:583;;;;8916:1;23466:946;;;;:::o;22860:314::-;5015:11;:9;:11::i;:::-;-1:-1:-1;;;;;5001:25:0;:10;-1:-1:-1;;;;;5001:25:0;;4993:63;;;;;-1:-1:-1;;;4993:63:0;;;;;;;;;;;;-1:-1:-1;;;4993:63:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;22969:22:0;;22961:50;;;;;-1:-1:-1;;;22961:50:0;;;;;;;;;;;;-1:-1:-1;;;22961:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23030:19:0;;;;;;:9;:19;;;;;;;;23022:58;;;;;-1:-1:-1;;;23022:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23093:19:0;;23115:5;23093:19;;;:9;:19;;;;;;:27;;-1:-1:-1;;23093:27:0;;;23138:28;;;23115:5;23138:28;22860:314;:::o;8659:41::-;;;;;;;;;;;;;;;:::o;4842:19::-;;;-1:-1:-1;;;;;4842:19:0;;:::o;22583:129::-;5015:11;:9;:11::i;:::-;-1:-1:-1;;;;;5001:25:0;:10;-1:-1:-1;;;;;5001:25:0;;4993:63;;;;;-1:-1:-1;;;4993:63:0;;;;;;;;;;;;-1:-1:-1;;;4993:63:0;;;;;;;;;;;;;;;22681:23;22695:8;22681:13;:23::i;:::-;22583:129;:::o;18738:204::-;18865:68;;;-1:-1:-1;;;;;18865:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18865:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18839:95:0;;18858:5;;18839:18;:95::i;:::-;18738:204;;;;:::o;6357:95::-;6428:5;;:16;;;-1:-1:-1;;;6428:16:0;;;;6401:7;;-1:-1:-1;;;;;6428:5:0;;:14;;:16;;;;;;;;;;;;;;:5;:16;;;5:2:-1;;;;30:1;27;20:12;5:2;6428:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6428:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6428:16:0;;-1:-1:-1;6357:95:0;:::o;9606:261::-;-1:-1:-1;;;;;9675:22:0;;9667:50;;;;;-1:-1:-1;;;9667:50:0;;;;;;;;;;;;-1:-1:-1;;;9667:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;9738:19:0;;;;;;:9;:19;;;;;;;;9736:21;9728:53;;;;;-1:-1:-1;;;9728:53:0;;;;;;;;;;;;-1:-1:-1;;;9728:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;9794:19:0;;;;;;:9;:19;;;;;;:26;;-1:-1:-1;;9794:26:0;9816:4;9794:26;;;9838:21;;;9794:19;9838:21;9606:261;:::o;20593:1114::-;21197:27;21205:5;-1:-1:-1;;;;;21197:25:0;;:27::i;:::-;21189:71;;;;;-1:-1:-1;;;21189:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21334:12;21348:23;21383:5;-1:-1:-1;;;;;21375:19:0;21395:4;21375:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;21375:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;21333:67:0;;;;21419:7;21411:52;;;;;-1:-1:-1;;;21411:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21480:17;;:21;21476:224;;21622:10;21611:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21611:30:0;21603:85;;;;-1:-1:-1;;;21603:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16144:619;16204:4;16672:20;;16515:66;16712:23;;;;;;:42;;-1:-1:-1;16739:15:0;;;16712:42;16704:51;16144:619;-1:-1:-1;;;;16144:619:0:o;9124:362::-;9251:39;9283:6;9251:31;:39::i;:::-;9333:1;9311:12;:19;:23;9303:57;;;;;-1:-1:-1;;;9303:57:0;;;;;;;;;;;;-1:-1:-1;;;9303:57:0;;;;;;;;;;;;;;;9377:9;9373:106;9396:12;:19;9392:1;:23;9373:106;;;9437:30;9451:12;9464:1;9451:15;;;;;;;;;;;;;;9437:13;:30::i;:::-;9417:3;;9373:106;;;;9124:362;;:::o;6033:200::-;-1:-1:-1;;;;;6098:20:0;;6090:54;;;;;-1:-1:-1;;;6090:54:0;;;;;;;;;;;;-1:-1:-1;;;6090:54:0;;;;;;;;;;;;;;;6155:5;:22;;-1:-1:-1;;;;;;6155:22:0;-1:-1:-1;;;;;6155:22:0;;;;;6188:37;3573:623;3798:23;;;-1:-1:-1;;;3798:23:0;;;;;;;;;;;;;;3781:14;:40;-1:-1:-1;;;3846:20:0;;;;;;;;;;;;;;3832:11;:34;-1:-1:-1;;;3895:23:0;;;;;;;;;;;;;3877:15;:41;-1:-1:-1;;;3948:22:0;;;;;;;;;;;;;;3931:14;:39;-1:-1:-1;;;3995:20:0;;;;;;;;;;;;3981:11;:34;-1:-1:-1;;;4049:29:0;;;;;;;;;;;;4026:20;:52;-1:-1:-1;;;4106:22:0;;;;;;;;;;;4089:14;:39;-1:-1:-1;;;4161:27:0;;;;;;;;;;;;4139:49;;3573:623::o
Swarm Source
bzzr://c8b56e96bbcb2bb3173960108852fecc4b1e5fed5f2aefbdc6af94c3a917f634
Loading...
Loading
Loading...
Loading
OVERVIEW
The mStable Rewards Distributor assigns MTA and other rewards to mStable's EARN pools
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ 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.