Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Multichain Info
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SharePoolFeeDistributor
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-24 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/owner/Operator.sol pragma solidity ^0.6.0; contract Operator is Context, Ownable { address private _operator; event OperatorTransferred( address indexed previousOperator, address indexed newOperator ); constructor() internal { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require( _operator == msg.sender, 'operator: caller is not the operator' ); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner { _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require( newOperator_ != address(0), 'operator: zero address given for new operator' ); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } } // File: contracts/Whitelist.sol pragma solidity ^0.6.0; contract Whitelist is Ownable { mapping(address => bool) whitelist; event AddedToWhitelist(address indexed account); event RemovedFromWhitelist(address indexed account); modifier onlyWhitelisted() { require(isWhitelisted(msg.sender)); _; } function addToWhitelist(address _address) public onlyOwner { whitelist[_address] = true; emit AddedToWhitelist(_address); } function removeFromWhitelist(address _address) public onlyOwner { whitelist[_address] = false; emit RemovedFromWhitelist(_address); } function isWhitelisted(address _address) public view returns(bool) { return whitelist[_address]; } } // File: contracts/SharePoolFeeDistributor.sol pragma solidity ^0.6.0; contract SharePoolFeeDistributor is Whitelist, Operator { using SafeMath for uint256; IERC20 public share; //fee address share gets transferred to address public feeTransferAddress; //% of share that gets transferred to first address (1 = 0.01%) uint256 public feePercent = 5000; // address of mic-usdt share pool address address public daiMicSharePoolAddress; // address of mis-usdt share pool address address public daiMisSharePoolAddress; event FeeAdded(uint256 amount); constructor(address _shareAddress, address _daiMicSharePoolAddress, address _daiMisSharePoolAddress) public { share = IERC20(_shareAddress); daiMicSharePoolAddress = _daiMicSharePoolAddress; daiMisSharePoolAddress = _daiMisSharePoolAddress; } //Calculated the fee amount from the amount of earned rewards function calculateFeeAmount(uint256 amount) external view returns (uint256 feeAmount) { feeAmount = amount.mul(feePercent).div(10000); } // The updateReward function in the share pool contract calls this to let the fee contract know the fee amount function addFee(uint256 amount) external { require(msg.sender == daiMicSharePoolAddress || msg.sender == daiMisSharePoolAddress); if(amount > 0) { _safeTransfer(feeTransferAddress, amount); } emit FeeAdded(amount); } // Internal function to safely transfer tokens in case there is a rounding error function _safeTransfer(address _to, uint256 _amount) internal { uint256 shareBalance = share.balanceOf(address(this)); if (_amount > shareBalance) { share.transfer(_to, shareBalance); } else { share.transfer(_to, _amount); } } /* ========== GOVERNANCE ========== */ function setFeeTransferAddress(address _address) public onlyWhitelisted { feeTransferAddress = _address; } function setFeePercent(uint256 _percent) public onlyWhitelisted { require(_percent < 10000); feePercent = _percent; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_shareAddress","type":"address"},{"internalType":"address","name":"_daiMicSharePoolAddress","type":"address"},{"internalType":"address","name":"_daiMisSharePoolAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AddedToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RemovedFromWhitelist","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateFeeAmount","outputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daiMicSharePoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daiMisSharePoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeTransferAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setFeeTransferAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"share","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405261138860055534801561001657600080fd5b50604051610d53380380610d538339818101604052606081101561003957600080fd5b50805160208201516040909201519091906000610054610134565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506100a6610134565b600280546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600380546001600160a01b039485166001600160a01b031991821617909155600680549385169382169390931790925560078054919093169116179055610138565b3390565b610c0c806101476000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063715018a6116100a25780638da5cb5b116100715780638da5cb5b14610260578063a8d5fd6514610268578063e43252d714610270578063e9a6ed3514610296578063f2fde38b146102bc57610116565b8063715018a61461020d5780637ce3489b146102155780637fd6f15c146102325780638ab1d6811461023a57610116565b80633af32abf116100e95780633af32abf146101b35780634456eda2146101ed57806345c2b820146101f5578063570ca735146101fd5780635e35f78b1461020557610116565b8063178f7b401461011b57806321307bac1461014a578063276541131461016957806329605e771461018d575b600080fd5b6101386004803603602081101561013157600080fd5b50356102e2565b60408051918252519081900360200190f35b6101676004803603602081101561016057600080fd5b503561030b565b005b610171610389565b604080516001600160a01b039092168252519081900360200190f35b610167600480360360208110156101a357600080fd5b50356001600160a01b0316610398565b6101d9600480360360208110156101c957600080fd5b50356001600160a01b03166103fc565b604080519115158252519081900360200190f35b6101d961041a565b610171610440565b61017161044f565b61017161045e565b61016761046d565b6101676004803603602081101561022b57600080fd5b503561050f565b610138610534565b6101676004803603602081101561025057600080fd5b50356001600160a01b031661053a565b6101716105db565b6101716105ea565b6101676004803603602081101561028657600080fd5b50356001600160a01b03166105f9565b610167600480360360208110156102ac57600080fd5b50356001600160a01b03166106a0565b610167600480360360208110156102d257600080fd5b50356001600160a01b03166106d4565b60006103056127106102ff600554856107cc90919063ffffffff16565b9061082c565b92915050565b6006546001600160a01b031633148061032e57506007546001600160a01b031633145b61033757600080fd5b801561035357600454610353906001600160a01b03168261086e565b6040805182815290517f59fdca5c5019c8bddf5b408b17992d0fce838508a49ac6a398c8e06e645cfdf89181900360200190a150565b6007546001600160a01b031681565b6103a06109ff565b6000546001600160a01b039081169116146103f0576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6103f981610a03565b50565b6001600160a01b031660009081526001602052604090205460ff1690565b6002546000906001600160a01b03166104316109ff565b6001600160a01b031614905090565b6004546001600160a01b031681565b6002546001600160a01b031690565b6006546001600160a01b031681565b6104756109ff565b6000546001600160a01b039081169116146104c5576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610518336103fc565b61052157600080fd5b612710811061052f57600080fd5b600555565b60055481565b6105426109ff565b6000546001600160a01b03908116911614610592576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260016020526040808220805460ff19169055517fcdd2e9b91a56913d370075169cefa1602ba36be5301664f752192bb1709df7579190a250565b6000546001600160a01b031690565b6003546001600160a01b031681565b6106016109ff565b6000546001600160a01b03908116911614610651576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517fa850ae9193f515cbae8d35e8925bd2be26627fc91bce650b8652ed254e9cab039190a250565b6106a9336103fc565b6106b257600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6106dc6109ff565b6000546001600160a01b0390811691161461072c576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6001600160a01b0381166107715760405162461bcd60e51b8152600401808060200182810382526026815260200180610b436026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826107db57506000610305565b828202828482816107e857fe5b04146108255760405162461bcd60e51b8152600401808060200182810382526021815260200180610b966021913960400191505060405180910390fd5b9392505050565b600061082583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610aa0565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156108b957600080fd5b505afa1580156108cd573d6000803e3d6000fd5b505050506040513d60208110156108e357600080fd5b5051905080821115610977576003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561094557600080fd5b505af1158015610959573d6000803e3d6000fd5b505050506040513d602081101561096f57600080fd5b506109fa9050565b6003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156109cd57600080fd5b505af11580156109e1573d6000803e3d6000fd5b505050506040513d60208110156109f757600080fd5b50505b505050565b3390565b6001600160a01b038116610a485760405162461bcd60e51b815260040180806020018281038252602d815260200180610b69602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008183610b2c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610af1578181015183820152602001610ad9565b50505050905090810190601f168015610b1e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610b3857fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573736f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122028e8d566384f097254abe8f460631f93e6bd6d5124afefbe71cb7c8be459cb4364736f6c634300060c0033000000000000000000000000024b6e7dc26f4d5579bdd936f8d7bc31f2339999000000000000000000000000e9e8f52169b7dd0ff6ea072168bcca42acbc7689000000000000000000000000717d21829188d3b1b16c428641691b5eca1aec15
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063715018a6116100a25780638da5cb5b116100715780638da5cb5b14610260578063a8d5fd6514610268578063e43252d714610270578063e9a6ed3514610296578063f2fde38b146102bc57610116565b8063715018a61461020d5780637ce3489b146102155780637fd6f15c146102325780638ab1d6811461023a57610116565b80633af32abf116100e95780633af32abf146101b35780634456eda2146101ed57806345c2b820146101f5578063570ca735146101fd5780635e35f78b1461020557610116565b8063178f7b401461011b57806321307bac1461014a578063276541131461016957806329605e771461018d575b600080fd5b6101386004803603602081101561013157600080fd5b50356102e2565b60408051918252519081900360200190f35b6101676004803603602081101561016057600080fd5b503561030b565b005b610171610389565b604080516001600160a01b039092168252519081900360200190f35b610167600480360360208110156101a357600080fd5b50356001600160a01b0316610398565b6101d9600480360360208110156101c957600080fd5b50356001600160a01b03166103fc565b604080519115158252519081900360200190f35b6101d961041a565b610171610440565b61017161044f565b61017161045e565b61016761046d565b6101676004803603602081101561022b57600080fd5b503561050f565b610138610534565b6101676004803603602081101561025057600080fd5b50356001600160a01b031661053a565b6101716105db565b6101716105ea565b6101676004803603602081101561028657600080fd5b50356001600160a01b03166105f9565b610167600480360360208110156102ac57600080fd5b50356001600160a01b03166106a0565b610167600480360360208110156102d257600080fd5b50356001600160a01b03166106d4565b60006103056127106102ff600554856107cc90919063ffffffff16565b9061082c565b92915050565b6006546001600160a01b031633148061032e57506007546001600160a01b031633145b61033757600080fd5b801561035357600454610353906001600160a01b03168261086e565b6040805182815290517f59fdca5c5019c8bddf5b408b17992d0fce838508a49ac6a398c8e06e645cfdf89181900360200190a150565b6007546001600160a01b031681565b6103a06109ff565b6000546001600160a01b039081169116146103f0576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6103f981610a03565b50565b6001600160a01b031660009081526001602052604090205460ff1690565b6002546000906001600160a01b03166104316109ff565b6001600160a01b031614905090565b6004546001600160a01b031681565b6002546001600160a01b031690565b6006546001600160a01b031681565b6104756109ff565b6000546001600160a01b039081169116146104c5576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610518336103fc565b61052157600080fd5b612710811061052f57600080fd5b600555565b60055481565b6105426109ff565b6000546001600160a01b03908116911614610592576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260016020526040808220805460ff19169055517fcdd2e9b91a56913d370075169cefa1602ba36be5301664f752192bb1709df7579190a250565b6000546001600160a01b031690565b6003546001600160a01b031681565b6106016109ff565b6000546001600160a01b03908116911614610651576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517fa850ae9193f515cbae8d35e8925bd2be26627fc91bce650b8652ed254e9cab039190a250565b6106a9336103fc565b6106b257600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6106dc6109ff565b6000546001600160a01b0390811691161461072c576040805162461bcd60e51b81526020600482018190526024820152600080516020610bb7833981519152604482015290519081900360640190fd5b6001600160a01b0381166107715760405162461bcd60e51b8152600401808060200182810382526026815260200180610b436026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826107db57506000610305565b828202828482816107e857fe5b04146108255760405162461bcd60e51b8152600401808060200182810382526021815260200180610b966021913960400191505060405180910390fd5b9392505050565b600061082583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610aa0565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156108b957600080fd5b505afa1580156108cd573d6000803e3d6000fd5b505050506040513d60208110156108e357600080fd5b5051905080821115610977576003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561094557600080fd5b505af1158015610959573d6000803e3d6000fd5b505050506040513d602081101561096f57600080fd5b506109fa9050565b6003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156109cd57600080fd5b505af11580156109e1573d6000803e3d6000fd5b505050506040513d60208110156109f757600080fd5b50505b505050565b3390565b6001600160a01b038116610a485760405162461bcd60e51b815260040180806020018281038252602d815260200180610b69602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008183610b2c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610af1578181015183820152602001610ad9565b50505050905090810190601f168015610b1e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610b3857fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573736f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122028e8d566384f097254abe8f460631f93e6bd6d5124afefbe71cb7c8be459cb4364736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000024b6e7dc26f4d5579bdd936f8d7bc31f2339999000000000000000000000000e9e8f52169b7dd0ff6ea072168bcca42acbc7689000000000000000000000000717d21829188d3b1b16c428641691b5eca1aec15
-----Decoded View---------------
Arg [0] : _shareAddress (address): 0x024B6e7DC26F4d5579bDD936F8d7BC31f2339999
Arg [1] : _daiMicSharePoolAddress (address): 0xe9e8f52169b7dD0Ff6Ea072168bccA42aCBc7689
Arg [2] : _daiMisSharePoolAddress (address): 0x717d21829188d3b1B16c428641691b5ecA1AEC15
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000024b6e7dc26f4d5579bdd936f8d7bc31f2339999
Arg [1] : 000000000000000000000000e9e8f52169b7dd0ff6ea072168bcca42acbc7689
Arg [2] : 000000000000000000000000717d21829188d3b1b16c428641691b5eca1aec15
Deployed Bytecode Sourcemap
13525:2235:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14423:185;;;;;;;;;;;;;;;;-1:-1:-1;14423:185:0;;:::i;:::-;;;;;;;;;;;;;;;;14732:296;;;;;;;;;;;;;;;;-1:-1:-1;14732:296:0;;:::i;:::-;;13985:37;;;:::i;:::-;;;;-1:-1:-1;;;;;13985:37:0;;;;;;;;;;;;;;12222:115;;;;;;;;;;;;;;;;-1:-1:-1;12222:115:0;-1:-1:-1;;;;;12222:115:0;;:::i;13321:112::-;;;;;;;;;;;;;;;;-1:-1:-1;13321:112:0;-1:-1:-1;;;;;13321:112:0;;:::i;:::-;;;;;;;;;;;;;;;;;;12114:100;;;:::i;13696:33::-;;;:::i;11849:85::-;;;:::i;13894:37::-;;;:::i;10890:148::-;;;:::i;15617:140::-;;;;;;;;;;;;;;;;-1:-1:-1;15617:140:0;;:::i;13806:32::-;;;:::i;13157:156::-;;;;;;;;;;;;;;;;-1:-1:-1;13157:156:0;-1:-1:-1;;;;;13157:156:0;;:::i;10248:79::-;;;:::i;13623:19::-;;;:::i;13003:146::-;;;;;;;;;;;;;;;;-1:-1:-1;13003:146:0;-1:-1:-1;;;;;13003:146:0;;:::i;15489:120::-;;;;;;;;;;;;;;;;-1:-1:-1;15489:120:0;-1:-1:-1;;;;;15489:120:0;;:::i;11193:244::-;;;;;;;;;;;;;;;;-1:-1:-1;11193:244:0;-1:-1:-1;;;;;11193:244:0;;:::i;14423:185::-;14520:17;14567:33;14594:5;14567:22;14578:10;;14567:6;:10;;:22;;;;:::i;:::-;:26;;:33::i;:::-;14555:45;14423:185;-1:-1:-1;;14423:185:0:o;14732:296::-;14822:22;;-1:-1:-1;;;;;14822:22:0;14808:10;:36;;:76;;-1:-1:-1;14862:22:0;;-1:-1:-1;;;;;14862:22:0;14848:10;:36;14808:76;14800:85;;;;;;14909:10;;14906:83;;14950:18;;14936:41;;-1:-1:-1;;;;;14950:18:0;14970:6;14936:13;:41::i;:::-;15004:16;;;;;;;;;;;;;;;;;14732:296;:::o;13985:37::-;;;-1:-1:-1;;;;;13985:37:0;;:::o;12222:115::-;10470:12;:10;:12::i;:::-;10460:6;;-1:-1:-1;;;;;10460:6:0;;;:22;;;10452:67;;;;;-1:-1:-1;;;10452:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10452:67:0;;;;;;;;;;;;;;;12298:31:::1;12316:12;12298:17;:31::i;:::-;12222:115:::0;:::o;13321:112::-;-1:-1:-1;;;;;13406:19:0;13382:4;13406:19;;;:9;:19;;;;;;;;;13321:112::o;12114:100::-;12197:9;;12157:4;;-1:-1:-1;;;;;12197:9:0;12181:12;:10;:12::i;:::-;-1:-1:-1;;;;;12181:25:0;;12174:32;;12114:100;:::o;13696:33::-;;;-1:-1:-1;;;;;13696:33:0;;:::o;11849:85::-;11917:9;;-1:-1:-1;;;;;11917:9:0;11849:85;:::o;13894:37::-;;;-1:-1:-1;;;;;13894:37:0;;:::o;10890:148::-;10470:12;:10;:12::i;:::-;10460:6;;-1:-1:-1;;;;;10460:6:0;;;:22;;;10452:67;;;;;-1:-1:-1;;;10452:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10452:67:0;;;;;;;;;;;;;;;10997:1:::1;10981:6:::0;;10960:40:::1;::::0;-1:-1:-1;;;;;10981:6:0;;::::1;::::0;10960:40:::1;::::0;10997:1;;10960:40:::1;11028:1;11011:19:::0;;-1:-1:-1;;;;;;11011:19:0::1;::::0;;10890:148::o;15617:140::-;12949:25;12963:10;12949:13;:25::i;:::-;12941:34;;;;;;15711:5:::1;15700:8;:16;15692:25;;;::::0;::::1;;15728:10;:21:::0;15617:140::o;13806:32::-;;;;:::o;13157:156::-;10470:12;:10;:12::i;:::-;10460:6;;-1:-1:-1;;;;;10460:6:0;;;:22;;;10452:67;;;;;-1:-1:-1;;;10452:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10452:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;13232:19:0;::::1;13254:5;13232:19:::0;;;:9:::1;:19;::::0;;;;;:27;;-1:-1:-1;;13232:27:0::1;::::0;;13275:30;::::1;::::0;13254:5;13275:30:::1;13157:156:::0;:::o;10248:79::-;10286:7;10313:6;-1:-1:-1;;;;;10313:6:0;10248:79;:::o;13623:19::-;;;-1:-1:-1;;;;;13623:19:0;;:::o;13003:146::-;10470:12;:10;:12::i;:::-;10460:6;;-1:-1:-1;;;;;10460:6:0;;;:22;;;10452:67;;;;;-1:-1:-1;;;10452:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10452:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;13073:19:0;::::1;;::::0;;;13095:4:::1;13073:19;::::0;;;;;;;:26;;-1:-1:-1;;13073:26:0::1;::::0;;::::1;::::0;;;13115;::::1;::::0;13073:19;13115:26:::1;13003:146:::0;:::o;15489:120::-;12949:25;12963:10;12949:13;:25::i;:::-;12941:34;;;;;;15572:18:::1;:29:::0;;-1:-1:-1;;;;;;15572:29:0::1;-1:-1:-1::0;;;;;15572:29:0;;;::::1;::::0;;;::::1;::::0;;15489:120::o;11193:244::-;10470:12;:10;:12::i;:::-;10460:6;;-1:-1:-1;;;;;10460:6:0;;;:22;;;10452:67;;;;;-1:-1:-1;;;10452:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10452:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;11282:22:0;::::1;11274:73;;;;-1:-1:-1::0;;;11274:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11384:6;::::0;;11363:38:::1;::::0;-1:-1:-1;;;;;11363:38:0;;::::1;::::0;11384:6;::::1;::::0;11363:38:::1;::::0;::::1;11412:6;:17:::0;;-1:-1:-1;;;;;;11412:17:0::1;-1:-1:-1::0;;;;;11412:17:0;;;::::1;::::0;;;::::1;::::0;;11193:244::o;5076:471::-;5134:7;5379:6;5375:47;;-1:-1:-1;5409:1:0;5402:8;;5375:47;5446:5;;;5450:1;5446;:5;:1;5470:5;;;;;:10;5462:56;;;;-1:-1:-1;;;5462:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5538:1;5076:471;-1:-1:-1;;;5076:471:0:o;6023:132::-;6081:7;6108:39;6112:1;6115;6108:39;;;;;;;;;;;;;;;;;:3;:39::i;15122:309::-;15234:5;;:30;;;-1:-1:-1;;;15234:30:0;;15258:4;15234:30;;;;;;15211:20;;-1:-1:-1;;;;;15234:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15234:30:0;;-1:-1:-1;15279:22:0;;;15275:149;;;15318:5;;:33;;;-1:-1:-1;;;15318:33:0;;-1:-1:-1;;;;;15318:33:0;;;;;;;;;;;;;;;:5;;;;;:14;;:33;;;;;;;;;;;;;;:5;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15275:149:0;;-1:-1:-1;15275:149:0;;15384:5;;:28;;;-1:-1:-1;;;15384:28:0;;-1:-1:-1;;;;;15384:28:0;;;;;;;;;;;;;;;:5;;;;;:14;;:28;;;;;;;;;;;;;;:5;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15275:149:0;15122:309;;;:::o;8804:106::-;8892:10;8804:106;:::o;12345:294::-;-1:-1:-1;;;;;12436:26:0;;12414:121;;;;-1:-1:-1;;;12414:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12551:45;;-1:-1:-1;;;;;12551:45:0;;;12579:1;;12551:45;;12579:1;;12551:45;12607:9;:24;;-1:-1:-1;;;;;;12607:24:0;-1:-1:-1;;;;;12607:24:0;;;;;;;;;;12345:294::o;6651:278::-;6737:7;6772:12;6765:5;6757:28;;;;-1:-1:-1;;;6757:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6796:9;6812:1;6808;:5;;;;;;;6651:278;-1:-1:-1;;;;;6651:278:0:o
Swarm Source
ipfs://28e8d566384f097254abe8f460631f93e6bd6d5124afefbe71cb7c8be459cb43
Loading...
Loading
Loading...
Loading
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.