More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 57 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove Tokens | 20965506 | 24 days ago | IN | 0 ETH | 0.00401787 | ||||
Set URL | 20965494 | 24 days ago | IN | 0 ETH | 0.00074056 | ||||
Remove All Token... | 20890398 | 35 days ago | IN | 0 ETH | 0.00278412 | ||||
Add Tokens | 19276773 | 260 days ago | IN | 0 ETH | 0.03157638 | ||||
Add Tokens | 18775924 | 331 days ago | IN | 0 ETH | 0.00077227 | ||||
Add Tokens | 18775924 | 331 days ago | IN | 0 ETH | 0.00488564 | ||||
Add Tokens | 18775909 | 331 days ago | IN | 0 ETH | 0.00098529 | ||||
Remove All Token... | 18707196 | 340 days ago | IN | 0 ETH | 0.00788849 | ||||
Add Tokens | 18706206 | 340 days ago | IN | 0 ETH | 0.02532848 | ||||
Remove All Token... | 18681621 | 344 days ago | IN | 0 ETH | 0.00843603 | ||||
Set URL | 18628165 | 351 days ago | IN | 0 ETH | 0.00190644 | ||||
Remove All Token... | 18628161 | 351 days ago | IN | 0 ETH | 0.00985157 | ||||
Add Tokens | 18519210 | 367 days ago | IN | 0 ETH | 0.00332006 | ||||
Add Tokens | 18519206 | 367 days ago | IN | 0 ETH | 0.00353721 | ||||
Add Tokens | 18519204 | 367 days ago | IN | 0 ETH | 0.00327441 | ||||
Add Tokens | 18519201 | 367 days ago | IN | 0 ETH | 0.00342593 | ||||
Add Tokens | 18519185 | 367 days ago | IN | 0 ETH | 0.00349095 | ||||
Add Tokens | 18519183 | 367 days ago | IN | 0 ETH | 0.00351827 | ||||
Add Tokens | 18519174 | 367 days ago | IN | 0 ETH | 0.00392671 | ||||
Set URL | 18519137 | 367 days ago | IN | 0 ETH | 0.00202521 | ||||
Remove All Token... | 18519100 | 367 days ago | IN | 0 ETH | 0.00266705 | ||||
Add Tokens | 18513814 | 367 days ago | IN | 0 ETH | 0.01671 | ||||
Set URL | 18513806 | 367 days ago | IN | 0 ETH | 0.00214999 | ||||
Add Tokens | 18441750 | 377 days ago | IN | 0 ETH | 0.00338978 | ||||
Add Tokens | 18441748 | 377 days ago | IN | 0 ETH | 0.00354361 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Registry
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; /** * @title AirSwap Server Registry * @notice Manage and query AirSwap server URLs */ contract Registry { using SafeERC20 for IERC20; using EnumerableSet for EnumerableSet.AddressSet; IERC20 public immutable stakingToken; uint256 public immutable obligationCost; uint256 public immutable tokenCost; mapping(address => EnumerableSet.AddressSet) internal supportedTokens; mapping(address => EnumerableSet.AddressSet) internal supportingStakers; mapping(address => string) public stakerURLs; event InitialStake(address indexed account); event FullUnstake(address indexed account); event AddTokens(address indexed account, address[] tokens); event RemoveTokens(address indexed account, address[] tokens); event SetURL(address indexed account, string url); /** * @notice Constructor * @param _stakingToken address of token used for staking * @param _obligationCost base amount required to stake * @param _tokenCost amount required to stake per token */ constructor( IERC20 _stakingToken, uint256 _obligationCost, uint256 _tokenCost ) { stakingToken = _stakingToken; obligationCost = _obligationCost; tokenCost = _tokenCost; } /** * @notice Set the URL for a staker * @param _url string value of the URL */ function setURL(string calldata _url) external { stakerURLs[msg.sender] = _url; emit SetURL(msg.sender, _url); } /** * @notice Add tokens supported by the caller * @param tokens array of token addresses */ function addTokens(address[] calldata tokens) external { uint256 length = tokens.length; require(length > 0, "NO_TOKENS_TO_ADD"); EnumerableSet.AddressSet storage tokenList = supportedTokens[msg.sender]; uint256 transferAmount = 0; if (tokenList.length() == 0) { transferAmount = obligationCost; emit InitialStake(msg.sender); } for (uint256 i = 0; i < length; i++) { address token = tokens[i]; require(tokenList.add(token), "TOKEN_EXISTS"); supportingStakers[token].add(msg.sender); } transferAmount += tokenCost * length; emit AddTokens(msg.sender, tokens); stakingToken.safeTransferFrom(msg.sender, address(this), transferAmount); } /** * @notice Remove tokens supported by the caller * @param tokens array of token addresses */ function removeTokens(address[] calldata tokens) external { uint256 length = tokens.length; require(length > 0, "NO_TOKENS_TO_REMOVE"); EnumerableSet.AddressSet storage tokenList = supportedTokens[msg.sender]; for (uint256 i = 0; i < length; i++) { address token = tokens[i]; require(tokenList.remove(token), "TOKEN_DOES_NOT_EXIST"); supportingStakers[token].remove(msg.sender); } uint256 transferAmount = tokenCost * length; if (tokenList.length() == 0) { transferAmount += obligationCost; emit FullUnstake(msg.sender); } emit RemoveTokens(msg.sender, tokens); stakingToken.safeTransfer(msg.sender, transferAmount); } /** * @notice Remove all tokens supported by the caller */ function removeAllTokens() external { EnumerableSet.AddressSet storage supportedTokenList = supportedTokens[msg.sender]; uint256 length = supportedTokenList.length(); require(length > 0, "NO_TOKENS_TO_REMOVE"); address[] memory tokenList = new address[](length); for (uint256 i = length; i > 0; ) { i--; address token = supportedTokenList.at(i); tokenList[i] = token; supportedTokenList.remove(token); supportingStakers[token].remove(msg.sender); } uint256 transferAmount = obligationCost + tokenCost * length; emit FullUnstake(msg.sender); emit RemoveTokens(msg.sender, tokenList); stakingToken.safeTransfer(msg.sender, transferAmount); } /** * @notice Return a list of all server URLs supporting a given token * @param token address of the token * @return urls array of server URLs supporting the token */ function getURLsForToken(address token) external view returns (string[] memory urls) { EnumerableSet.AddressSet storage stakers = supportingStakers[token]; uint256 length = stakers.length(); urls = new string[](length); for (uint256 i = 0; i < length; i++) { urls[i] = stakerURLs[address(stakers.at(i))]; } } /** * @notice Get the URLs for an array of stakers * @param stakers array of staker addresses * @return urls array of server URLs in the same order */ function getURLsForStakers(address[] calldata stakers) external view returns (string[] memory urls) { uint256 stakersLength = stakers.length; urls = new string[](stakersLength); for (uint256 i = 0; i < stakersLength; i++) { urls[i] = stakerURLs[stakers[i]]; } } /** * @notice Return whether a staker supports a given token * @param staker account address used to stake * @param token address of the token * @return true if the staker supports the token */ function supportsToken(address staker, address token) external view returns (bool) { return supportedTokens[staker].contains(token); } /** * @notice Return a list of all supported tokens for a given staker * @param staker account address of the staker * @return tokenList array of all the supported tokens */ function getSupportedTokens(address staker) external view returns (address[] memory tokenList) { EnumerableSet.AddressSet storage tokens = supportedTokens[staker]; uint256 length = tokens.length(); tokenList = new address[](length); for (uint256 i = 0; i < length; i++) { tokenList[i] = tokens.at(i); } } /** * @notice Return a list of all stakers supporting a given token * @param token address of the token * @return stakers array of all stakers that support a given token */ function getStakersForToken(address token) external view returns (address[] memory stakers) { EnumerableSet.AddressSet storage stakerList = supportingStakers[token]; uint256 length = stakerList.length(); stakers = new address[](length); for (uint256 i = 0; i < length; i++) { stakers[i] = stakerList.at(i); } } /** * @notice Return the staking balance of a given staker * @param staker address of the account used to stake * @return balance of the staker account */ function balanceOf(address staker) external view returns (uint256) { uint256 tokenCount = supportedTokens[staker].length(); if (tokenCount == 0) { return 0; } return obligationCost + tokenCost * tokenCount; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @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 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity ^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; 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"); (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"); (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"); (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"); (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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"uint256","name":"_obligationCost","type":"uint256"},{"internalType":"uint256","name":"_tokenCost","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"AddTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"FullUnstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"InitialStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"RemoveTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"string","name":"url","type":"string"}],"name":"SetURL","type":"event"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"addTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getStakersForToken","outputs":[{"internalType":"address[]","name":"stakers","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getSupportedTokens","outputs":[{"internalType":"address[]","name":"tokenList","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"stakers","type":"address[]"}],"name":"getURLsForStakers","outputs":[{"internalType":"string[]","name":"urls","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getURLsForToken","outputs":[{"internalType":"string[]","name":"urls","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"obligationCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"removeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakerURLs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"supportsToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e060405234801561001057600080fd5b5060405161207038038061207083398101604081905261002f9161004d565b60609290921b6001600160601b03191660805260a05260c05261008e565b600080600060608486031215610061578283fd5b83516001600160a01b0381168114610077578384fd5b602085015160409095015190969495509392505050565b60805160601c60a05160c051611f6361010d6000396000818161024a015281816105bc0152818161084d01528181610cb00152610f3401526000818161011d0152818161045b0152818161088501528181610cda0152610f5e0152600081816101e3015281816106560152818161094301526110180152611f636000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806370a082311161008c578063793cc5a111610066578063793cc5a11461023d578063912221d514610245578063c3ced1521461026c578063d12877dc1461028c57600080fd5b806370a08231146101cb57806372f702f3146101de578063773434081461022a57600080fd5b806353731c69116100c857806353731c69146101625780636c3824ef146101855780636df35874146101985780636e8658a7146101b857600080fd5b806307526acf146100ef5780632b24ef55146101185780634ae05c7d1461014d575b600080fd5b6101026100fd366004611a75565b61029f565b60405161010f9190611c6b565b60405180910390f35b61013f7f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161010f565b61016061015b366004611ac1565b6103cb565b005b610175610170366004611a8f565b610685565b604051901515815260200161010f565b610160610193366004611ac1565b6106bd565b6101ab6101a6366004611a75565b61096a565b60405161010f9190611cc5565b6101026101c6366004611a75565b610b46565b61013f6101d9366004611a75565b610c6a565b6102057f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010f565b610160610238366004611b51565b610d05565b610160610d74565b61013f7f000000000000000000000000000000000000000000000000000000000000000081565b61027f61027a366004611a75565b611045565b60405161010f9190611d91565b6101ab61029a366004611ac1565b6110df565b73ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081206060916102d0826112d7565b90508067ffffffffffffffff811115610312577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561033b578160200160208202803683370190505b50925060005b818110156103c35761035383826112e1565b84828151811061038c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152806103bb81611ec5565b915050610341565b505050919050565b8080610438576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e4f5f544f4b454e535f544f5f4144440000000000000000000000000000000060448201526064015b60405180910390fd5b33600090815260208190526040812090610451826112d7565b6104a457506040517f00000000000000000000000000000000000000000000000000000000000000009033907fb084bc494a89304dcf54b309b9692bdafd4b67539fd9dc15219bd6b82ecc61a390600090a25b60005b838110156105b55760008686838181106104ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906104ff9190611a75565b905061050b84826112ed565b610571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f544f4b454e5f4558495354530000000000000000000000000000000000000000604482015260640161042f565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090206105a090336112ed565b505080806105ad90611ec5565b9150506104a7565b506105e0837f0000000000000000000000000000000000000000000000000000000000000000611dbc565b6105ea9082611da4565b90503373ffffffffffffffffffffffffffffffffffffffff167f8a4417f85fc0d82e2365afb5e344e2d731a29ce2b5a000da7857409c49d28cc28686604051610634929190611c12565b60405180910390a261067e73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633308461130f565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081206106b490836113eb565b90505b92915050565b8080610725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e4f5f544f4b454e535f544f5f52454d4f564500000000000000000000000000604482015260640161042f565b336000908152602081905260408120905b82811015610844576000858583818110610779577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061078e9190611a75565b905061079a838261141a565b610800576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f544f4b454e5f444f45535f4e4f545f4558495354000000000000000000000000604482015260640161042f565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040902061082f903361141a565b5050808061083c90611ec5565b915050610736565b506000610871837f0000000000000000000000000000000000000000000000000000000000000000611dbc565b905061087c826112d7565b6108d9576108aa7f000000000000000000000000000000000000000000000000000000000000000082611da4565b60405190915033907f5145121d6af63d58cca25c9f269c9ba617dded29d84ffd18499436c7c21b3f2890600090a25b3373ffffffffffffffffffffffffffffffffffffffff167f4efa1188fb6a3db44946ac387489b6f4e29207ef0d603be528f37471525880458686604051610921929190611c12565b60405180910390a261067e73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016338361143c565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812060609161099b826112d7565b90508067ffffffffffffffff8111156109dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a1057816020015b60608152602001906001900390816109fb5790505b50925060005b818110156103c35760026000610a2c85846112e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054610a7190611e71565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9d90611e71565b8015610aea5780601f10610abf57610100808354040283529160200191610aea565b820191906000526020600020905b815481529060010190602001808311610acd57829003601f168201915b5050505050848281518110610b28577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052508080610b3e90611ec5565b915050610a16565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120606091610b77826112d7565b90508067ffffffffffffffff811115610bb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610be2578160200160208202803683370190505b50925060005b818110156103c357610bfa83826112e1565b848281518110610c33577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280610c6281611ec5565b915050610be8565b73ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081208190610c9a906112d7565b905080610caa5750600092915050565b610cd4817f0000000000000000000000000000000000000000000000000000000000000000611dbc565b610cfe907f0000000000000000000000000000000000000000000000000000000000000000611da4565b9392505050565b336000908152600260205260409020610d1f908383611995565b503373ffffffffffffffffffffffffffffffffffffffff167f249856326dc0fe2c794b9c0daafa35de121bec273c9253186c69197caa3407198383604051610d68929190611d44565b60405180910390a25050565b33600090815260208190526040812090610d8d826112d7565b905060008111610df9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e4f5f544f4b454e535f544f5f52454d4f564500000000000000000000000000604482015260640161042f565b60008167ffffffffffffffff811115610e3b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610e64578160200160208202803683370190505b509050815b8015610f2b5780610e7981611e3c565b915060009050610e8985836112e1565b905080838381518110610ec5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152610ef4858261141a565b5073ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260409020610f24903361141a565b5050610e69565b506000610f58837f0000000000000000000000000000000000000000000000000000000000000000611dbc565b610f82907f0000000000000000000000000000000000000000000000000000000000000000611da4565b60405190915033907f5145121d6af63d58cca25c9f269c9ba617dded29d84ffd18499436c7c21b3f2890600090a23373ffffffffffffffffffffffffffffffffffffffff167f4efa1188fb6a3db44946ac387489b6f4e29207ef0d603be528f374715258804583604051610ff69190611c6b565b60405180910390a261103f73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016338361143c565b50505050565b6002602052600090815260409020805461105e90611e71565b80601f016020809104026020016040519081016040528092919081815260200182805461108a90611e71565b80156110d75780601f106110ac576101008083540402835291602001916110d7565b820191906000526020600020905b8154815290600101906020018083116110ba57829003601f168201915b505050505081565b6060818067ffffffffffffffff811115611122577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561115557816020015b60608152602001906001900390816111405790505b50915060005b818110156112cf57600260008686848181106111a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906111b59190611a75565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080546111fa90611e71565b80601f016020809104026020016040519081016040528092919081815260200182805461122690611e71565b80156112735780601f1061124857610100808354040283529160200191611273565b820191906000526020600020905b81548152906001019060200180831161125657829003601f168201915b50505050508382815181106112b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018190525080806112c790611ec5565b91505061115b565b505092915050565b60006106b7825490565b60006106b48383611497565b60006106b48373ffffffffffffffffffffffffffffffffffffffff84166114e8565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261103f9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611537565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415156106b4565b60006106b48373ffffffffffffffffffffffffffffffffffffffff8416611643565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526114929084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611369565b505050565b60008260000182815481106114d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081815260018301602052604081205461152f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106b7565b5060006106b7565b6000611599826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117ab9092919063ffffffff16565b80519091501561149257808060200190518101906115b79190611b31565b611492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161042f565b600081815260018301602052604081205480156117a1576000611667600183611df9565b855490915060009061167b90600190611df9565b905081811461172e5760008660000182815481106116c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508087600001848154811061170c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611766577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106b7565b60009150506106b7565b60606117ba84846000856117c2565b949350505050565b606082471015611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161042f565b843b6118bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161042f565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516118e59190611bf6565b60006040518083038185875af1925050503d8060008114611922576040519150601f19603f3d011682016040523d82523d6000602084013e611927565b606091505b5091509150611937828286611942565b979650505050505050565b60608315611951575081610cfe565b8251156119615782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042f9190611d91565b8280546119a190611e71565b90600052602060002090601f0160209004810192826119c35760008555611a27565b82601f106119fa578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555611a27565b82800160010185558215611a27579182015b82811115611a27578235825591602001919060010190611a0c565b50611a33929150611a37565b5090565b5b80821115611a335760008155600101611a38565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a7057600080fd5b919050565b600060208284031215611a86578081fd5b6106b482611a4c565b60008060408385031215611aa1578081fd5b611aaa83611a4c565b9150611ab860208401611a4c565b90509250929050565b60008060208385031215611ad3578182fd5b823567ffffffffffffffff80821115611aea578384fd5b818501915085601f830112611afd578384fd5b813581811115611b0b578485fd5b8660208260051b8501011115611b1f578485fd5b60209290920196919550909350505050565b600060208284031215611b42578081fd5b81518015158114610cfe578182fd5b60008060208385031215611b63578182fd5b823567ffffffffffffffff80821115611b7a578384fd5b818501915085601f830112611b8d578384fd5b813581811115611b9b578485fd5b866020828501011115611b1f578485fd5b60008151808452611bc4816020860160208601611e10565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251611c08818460208701611e10565b9190910192915050565b60208082528181018390526000908460408401835b86811015611c605773ffffffffffffffffffffffffffffffffffffffff611c4d84611a4c565b1682529183019190830190600101611c27565b509695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611cb957835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101611c87565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015611d37577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452611d25858351611bac565b94509285019290850190600101611ceb565b5092979650505050505050565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b6020815260006106b46020830184611bac565b60008219821115611db757611db7611efe565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611df457611df4611efe565b500290565b600082821015611e0b57611e0b611efe565b500390565b60005b83811015611e2b578181015183820152602001611e13565b8381111561103f5750506000910152565b600081611e4b57611e4b611efe565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680611e8557607f821691505b60208210811415611ebf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ef757611ef7611efe565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220962a4d8a2f23eb8603df4da5af23841e97917dd042da455f684037ceafe1e34f64736f6c6343000804003300000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000f4240
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806370a082311161008c578063793cc5a111610066578063793cc5a11461023d578063912221d514610245578063c3ced1521461026c578063d12877dc1461028c57600080fd5b806370a08231146101cb57806372f702f3146101de578063773434081461022a57600080fd5b806353731c69116100c857806353731c69146101625780636c3824ef146101855780636df35874146101985780636e8658a7146101b857600080fd5b806307526acf146100ef5780632b24ef55146101185780634ae05c7d1461014d575b600080fd5b6101026100fd366004611a75565b61029f565b60405161010f9190611c6b565b60405180910390f35b61013f7f000000000000000000000000000000000000000000000000000000003b9aca0081565b60405190815260200161010f565b61016061015b366004611ac1565b6103cb565b005b610175610170366004611a8f565b610685565b604051901515815260200161010f565b610160610193366004611ac1565b6106bd565b6101ab6101a6366004611a75565b61096a565b60405161010f9190611cc5565b6101026101c6366004611a75565b610b46565b61013f6101d9366004611a75565b610c6a565b6102057f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a81565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010f565b610160610238366004611b51565b610d05565b610160610d74565b61013f7f00000000000000000000000000000000000000000000000000000000000f424081565b61027f61027a366004611a75565b611045565b60405161010f9190611d91565b6101ab61029a366004611ac1565b6110df565b73ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081206060916102d0826112d7565b90508067ffffffffffffffff811115610312577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561033b578160200160208202803683370190505b50925060005b818110156103c35761035383826112e1565b84828151811061038c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152806103bb81611ec5565b915050610341565b505050919050565b8080610438576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e4f5f544f4b454e535f544f5f4144440000000000000000000000000000000060448201526064015b60405180910390fd5b33600090815260208190526040812090610451826112d7565b6104a457506040517f000000000000000000000000000000000000000000000000000000003b9aca009033907fb084bc494a89304dcf54b309b9692bdafd4b67539fd9dc15219bd6b82ecc61a390600090a25b60005b838110156105b55760008686838181106104ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906104ff9190611a75565b905061050b84826112ed565b610571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f544f4b454e5f4558495354530000000000000000000000000000000000000000604482015260640161042f565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090206105a090336112ed565b505080806105ad90611ec5565b9150506104a7565b506105e0837f00000000000000000000000000000000000000000000000000000000000f4240611dbc565b6105ea9082611da4565b90503373ffffffffffffffffffffffffffffffffffffffff167f8a4417f85fc0d82e2365afb5e344e2d731a29ce2b5a000da7857409c49d28cc28686604051610634929190611c12565b60405180910390a261067e73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a1633308461130f565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081206106b490836113eb565b90505b92915050565b8080610725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e4f5f544f4b454e535f544f5f52454d4f564500000000000000000000000000604482015260640161042f565b336000908152602081905260408120905b82811015610844576000858583818110610779577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061078e9190611a75565b905061079a838261141a565b610800576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f544f4b454e5f444f45535f4e4f545f4558495354000000000000000000000000604482015260640161042f565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040902061082f903361141a565b5050808061083c90611ec5565b915050610736565b506000610871837f00000000000000000000000000000000000000000000000000000000000f4240611dbc565b905061087c826112d7565b6108d9576108aa7f000000000000000000000000000000000000000000000000000000003b9aca0082611da4565b60405190915033907f5145121d6af63d58cca25c9f269c9ba617dded29d84ffd18499436c7c21b3f2890600090a25b3373ffffffffffffffffffffffffffffffffffffffff167f4efa1188fb6a3db44946ac387489b6f4e29207ef0d603be528f37471525880458686604051610921929190611c12565b60405180910390a261067e73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a16338361143c565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812060609161099b826112d7565b90508067ffffffffffffffff8111156109dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a1057816020015b60608152602001906001900390816109fb5790505b50925060005b818110156103c35760026000610a2c85846112e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054610a7190611e71565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9d90611e71565b8015610aea5780601f10610abf57610100808354040283529160200191610aea565b820191906000526020600020905b815481529060010190602001808311610acd57829003601f168201915b5050505050848281518110610b28577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052508080610b3e90611ec5565b915050610a16565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120606091610b77826112d7565b90508067ffffffffffffffff811115610bb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610be2578160200160208202803683370190505b50925060005b818110156103c357610bfa83826112e1565b848281518110610c33577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280610c6281611ec5565b915050610be8565b73ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081208190610c9a906112d7565b905080610caa5750600092915050565b610cd4817f00000000000000000000000000000000000000000000000000000000000f4240611dbc565b610cfe907f000000000000000000000000000000000000000000000000000000003b9aca00611da4565b9392505050565b336000908152600260205260409020610d1f908383611995565b503373ffffffffffffffffffffffffffffffffffffffff167f249856326dc0fe2c794b9c0daafa35de121bec273c9253186c69197caa3407198383604051610d68929190611d44565b60405180910390a25050565b33600090815260208190526040812090610d8d826112d7565b905060008111610df9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e4f5f544f4b454e535f544f5f52454d4f564500000000000000000000000000604482015260640161042f565b60008167ffffffffffffffff811115610e3b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610e64578160200160208202803683370190505b509050815b8015610f2b5780610e7981611e3c565b915060009050610e8985836112e1565b905080838381518110610ec5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152610ef4858261141a565b5073ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260409020610f24903361141a565b5050610e69565b506000610f58837f00000000000000000000000000000000000000000000000000000000000f4240611dbc565b610f82907f000000000000000000000000000000000000000000000000000000003b9aca00611da4565b60405190915033907f5145121d6af63d58cca25c9f269c9ba617dded29d84ffd18499436c7c21b3f2890600090a23373ffffffffffffffffffffffffffffffffffffffff167f4efa1188fb6a3db44946ac387489b6f4e29207ef0d603be528f374715258804583604051610ff69190611c6b565b60405180910390a261103f73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a16338361143c565b50505050565b6002602052600090815260409020805461105e90611e71565b80601f016020809104026020016040519081016040528092919081815260200182805461108a90611e71565b80156110d75780601f106110ac576101008083540402835291602001916110d7565b820191906000526020600020905b8154815290600101906020018083116110ba57829003601f168201915b505050505081565b6060818067ffffffffffffffff811115611122577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561115557816020015b60608152602001906001900390816111405790505b50915060005b818110156112cf57600260008686848181106111a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906111b59190611a75565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080546111fa90611e71565b80601f016020809104026020016040519081016040528092919081815260200182805461122690611e71565b80156112735780601f1061124857610100808354040283529160200191611273565b820191906000526020600020905b81548152906001019060200180831161125657829003601f168201915b50505050508382815181106112b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018190525080806112c790611ec5565b91505061115b565b505092915050565b60006106b7825490565b60006106b48383611497565b60006106b48373ffffffffffffffffffffffffffffffffffffffff84166114e8565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261103f9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611537565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415156106b4565b60006106b48373ffffffffffffffffffffffffffffffffffffffff8416611643565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526114929084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611369565b505050565b60008260000182815481106114d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081815260018301602052604081205461152f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106b7565b5060006106b7565b6000611599826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117ab9092919063ffffffff16565b80519091501561149257808060200190518101906115b79190611b31565b611492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161042f565b600081815260018301602052604081205480156117a1576000611667600183611df9565b855490915060009061167b90600190611df9565b905081811461172e5760008660000182815481106116c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508087600001848154811061170c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611766577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106b7565b60009150506106b7565b60606117ba84846000856117c2565b949350505050565b606082471015611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161042f565b843b6118bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161042f565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516118e59190611bf6565b60006040518083038185875af1925050503d8060008114611922576040519150601f19603f3d011682016040523d82523d6000602084013e611927565b606091505b5091509150611937828286611942565b979650505050505050565b60608315611951575081610cfe565b8251156119615782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042f9190611d91565b8280546119a190611e71565b90600052602060002090601f0160209004810192826119c35760008555611a27565b82601f106119fa578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555611a27565b82800160010185558215611a27579182015b82811115611a27578235825591602001919060010190611a0c565b50611a33929150611a37565b5090565b5b80821115611a335760008155600101611a38565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a7057600080fd5b919050565b600060208284031215611a86578081fd5b6106b482611a4c565b60008060408385031215611aa1578081fd5b611aaa83611a4c565b9150611ab860208401611a4c565b90509250929050565b60008060208385031215611ad3578182fd5b823567ffffffffffffffff80821115611aea578384fd5b818501915085601f830112611afd578384fd5b813581811115611b0b578485fd5b8660208260051b8501011115611b1f578485fd5b60209290920196919550909350505050565b600060208284031215611b42578081fd5b81518015158114610cfe578182fd5b60008060208385031215611b63578182fd5b823567ffffffffffffffff80821115611b7a578384fd5b818501915085601f830112611b8d578384fd5b813581811115611b9b578485fd5b866020828501011115611b1f578485fd5b60008151808452611bc4816020860160208601611e10565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251611c08818460208701611e10565b9190910192915050565b60208082528181018390526000908460408401835b86811015611c605773ffffffffffffffffffffffffffffffffffffffff611c4d84611a4c565b1682529183019190830190600101611c27565b509695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611cb957835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101611c87565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015611d37577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452611d25858351611bac565b94509285019290850190600101611ceb565b5092979650505050505050565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b6020815260006106b46020830184611bac565b60008219821115611db757611db7611efe565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611df457611df4611efe565b500290565b600082821015611e0b57611e0b611efe565b500390565b60005b83811015611e2b578181015183820152602001611e13565b8381111561103f5750506000910152565b600081611e4b57611e4b611efe565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680611e8557607f821691505b60208210811415611ebf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ef757611ef7611efe565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220962a4d8a2f23eb8603df4da5af23841e97917dd042da455f684037ceafe1e34f64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000f4240
-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x27054b13b1B798B345b591a4d22e6562d47eA75a
Arg [1] : _obligationCost (uint256): 1000000000
Arg [2] : _tokenCost (uint256): 1000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a
Arg [1] : 000000000000000000000000000000000000000000000000000000003b9aca00
Arg [2] : 00000000000000000000000000000000000000000000000000000000000f4240
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.081328 | 411,200 | $33,442.07 |
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.