Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
RewardManager
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ConfigManager.sol"; contract RewardManager is Ownable { using ECDSA for bytes32; // State variables IERC20 public susdToken; address public signerAddress; mapping(string => uint256) public creatorRewards; mapping(address => uint256) public deployerRewards; address public routingContract; ConfigManager public configManager; // Events event CreatorRewardClaimed(string indexed tweetUserId, address indexed recipient, uint256 amount); event DeployerRewardClaimed(address indexed deployerAddress, address indexed recipient, uint256 amount); // Modifiers modifier onlyRoutingContract() { require(msg.sender == routingContract, "Reward: caller is not the routing contract"); _; } constructor(address _routingContract, address _configManager, address _signerAddress, address _susdToken) Ownable(msg.sender) { routingContract = _routingContract; require(_signerAddress != address(0), "Reward: invalid signer address"); require(_susdToken != address(0), "Reward: invalid SUSD token"); signerAddress = _signerAddress; susdToken = IERC20(_susdToken); configManager = ConfigManager(_configManager); } function depositRewards(string calldata tweetUserId, uint256 amount, address deployerAddress, uint256 deployerAmount) external onlyRoutingContract { creatorRewards[tweetUserId] += amount; deployerRewards[deployerAddress] += deployerAmount; } function claimCreatorReward(string calldata tweetUserId, address payable to, bytes calldata signature) external { uint256 amount = creatorRewards[tweetUserId]; require(amount > 0, "Reward: no reward available"); // Verify signature bytes32 messageHash = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256( abi.encode( address(this), // Contract address for replay protection tweetUserId, // Tweet user ID to, // Recipient address amount // Amount being claimed ) ) ) ); address recoveredSigner = ECDSA.recover(messageHash, signature); require(recoveredSigner == signerAddress, "RewardManager: invalid signature"); creatorRewards[tweetUserId] = 0; require(susdToken.transfer(to, amount), "Reward: transfer failed"); emit CreatorRewardClaimed(tweetUserId, to, amount); } function claimDeployerReward(address payable to) external { uint256 amount = deployerRewards[msg.sender]; require(amount > 0, "Reward: no reward available"); deployerRewards[msg.sender] = 0; require(susdToken.transfer(to, amount), "Reward: transfer failed"); emit DeployerRewardClaimed(msg.sender, to, amount); } function setRoutingContract(address _routingContract) external onlyOwner { require(_routingContract != address(0), "Reward: invalid routing contract"); routingContract = _routingContract; } function setSignerAddress(address newSigner) external onlyOwner { require(newSigner != address(0), "Reward: invalid signer address"); signerAddress = newSigner; } function setConfigManager(address _configManager) external onlyOwner { require(_configManager != address(0), "Reward: invalid config manager"); configManager = ConfigManager(_configManager); } function getCreatorReward(string calldata tweetUserId) external view returns (uint256) { return creatorRewards[tweetUserId]; } function getDeployerReward(address deployerAddress) external view returns (uint256) { return deployerRewards[deployerAddress]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @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); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.20; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS } /** * @dev The signature derives the `address(0)`. */ error ECDSAInvalidSignature(); /** * @dev The signature has an invalid length. */ error ECDSAInvalidSignatureLength(uint256 length); /** * @dev The signature has an S value that is in the upper half order. */ error ECDSAInvalidSignatureS(bytes32 s); /** * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not * return address(0) without also returning an error description. Errors are documented using an enum (error type) * and a bytes32 providing additional information about the error. * * If no error is returned, then the address can be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function tryRecover( bytes32 hash, bytes memory signature ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly ("memory-safe") { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length)); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures] */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { unchecked { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); // We do not check for an overflow here since the shift operation results in 0 or 1. uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS, s); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature, bytes32(0)); } return (signer, RecoverError.NoError, bytes32(0)); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s); _throwError(error, errorArg); return recovered; } /** * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided. */ function _throwError(RecoverError error, bytes32 errorArg) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert ECDSAInvalidSignature(); } else if (error == RecoverError.InvalidSignatureLength) { revert ECDSAInvalidSignatureLength(uint256(errorArg)); } else if (error == RecoverError.InvalidSignatureS) { revert ECDSAInvalidSignatureS(errorArg); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; contract ConfigManager is Ownable { address public platformWallet; address public susdToken; address public boomToken; address public feeManager; address public migratorManager; address public rewardManager; address public graduateFactory; address public graduateRouter; address public router; uint256 public minPurchaseAmount; uint256 public inactivePoolThreshold; uint256 public creationFee; // Constants for virtual dollar thresholds uint256 public constant START_THRESHOLD = 10_000 * 1e6; // 10,000 virtual dollars uint256 public constant FAMOUS_THRESHOLD = 20_000 * 1e6; // 20,000 virtual dollars uint256 public constant VIRAL_THRESHOLD = 40_000 * 1e6; // 40,000 virtual dollars uint256 public constant GRADUATE_THRESHOLD = 80_000 * 1e6; // 80,000 virtual dollars constructor() Ownable(msg.sender) { inactivePoolThreshold = 24 hours; minPurchaseAmount = 1 * 1e6; // 1 SUSD (1,000,000 base units) creationFee = 1_000; // 0.001 SUSD in base units } function setAddresses( address _platformWallet, address _susdToken, address _boomToken, address _feeManager, address _migratorManager, address _rewardManager, address _router ) public onlyOwner { platformWallet = _platformWallet; susdToken = _susdToken; boomToken = _boomToken; feeManager = _feeManager; migratorManager = _migratorManager; rewardManager = _rewardManager; router = _router; } function setParameters( uint256 _minPurchaseAmount, uint256 _inactivePoolThreshold, uint256 _creationFee ) public onlyOwner { minPurchaseAmount = _minPurchaseAmount; inactivePoolThreshold = _inactivePoolThreshold; creationFee = _creationFee; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_routingContract","type":"address"},{"internalType":"address","name":"_configManager","type":"address"},{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"address","name":"_susdToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"tweetUserId","type":"string"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CreatorRewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"deployerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DeployerRewardClaimed","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"},{"inputs":[{"internalType":"string","name":"tweetUserId","type":"string"},{"internalType":"address payable","name":"to","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimCreatorReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"claimDeployerReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"configManager","outputs":[{"internalType":"contract ConfigManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"creatorRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deployerRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tweetUserId","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"deployerAddress","type":"address"},{"internalType":"uint256","name":"deployerAmount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tweetUserId","type":"string"}],"name":"getCreatorReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"deployerAddress","type":"address"}],"name":"getDeployerReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"routingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_configManager","type":"address"}],"name":"setConfigManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_routingContract","type":"address"}],"name":"setRoutingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"susdToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001208380380620012088339810160408190526200003491620001e4565b33806200005c57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000678162000177565b50600580546001600160a01b0319166001600160a01b03868116919091179091558216620000d85760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c6964207369676e657220616464726573730000604482015260640162000053565b6001600160a01b038116620001305760405162461bcd60e51b815260206004820152601a60248201527f5265776172643a20696e76616c6964205355534420746f6b656e000000000000604482015260640162000053565b600280546001600160a01b039384166001600160a01b0319918216179091556001805492841692821692909217909155600680549390921692169190911790555062000241565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001df57600080fd5b919050565b60008060008060808587031215620001fb57600080fd5b6200020685620001c7565b93506200021660208601620001c7565b92506200022660408601620001c7565b91506200023660608601620001c7565b905092959194509250565b610fb780620002516000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638da5cb5b116100a2578063ca0ab07511610071578063ca0ab0751461024f578063d16936da14610262578063d80a558914610275578063f2fde38b14610288578063f39690e41461029b57600080fd5b80638da5cb5b146101ef578063b4e25e8014610200578063bead163f14610213578063c4271ac31461022657600080fd5b80635adae1ec116100de5780635adae1ec146101965780635b7633d0146101c15780635f0e148b146101d4578063715018a6146101e757600080fd5b8063012e83b414610110578063046dc16614610140578063162c0cbb1461015557806358932f2014610168575b600080fd5b600554610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61015361014e366004610c60565b6102ae565b005b610153610163366004610c60565b610333565b610188610176366004610c60565b60046020526000908152604090205481565b604051908152602001610137565b6101886101a4366004610c9a565b805160208183018101805160038252928201919093012091525481565b600254610123906001600160a01b031681565b6101536101e2366004610d94565b6103b3565b610153610489565b6000546001600160a01b0316610123565b61015361020e366004610c60565b61049d565b610188610221366004610dfb565b61051d565b610188610234366004610c60565b6001600160a01b031660009081526004602052604090205490565b600654610123906001600160a01b031681565b610153610270366004610c60565b610549565b610153610283366004610e3d565b6106bd565b610153610296366004610c60565b61098d565b600154610123906001600160a01b031681565b6102b66109cb565b6001600160a01b0381166103115760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c6964207369676e65722061646472657373000060448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61033b6109cb565b6001600160a01b0381166103915760405162461bcd60e51b815260206004820181905260248201527f5265776172643a20696e76616c696420726f7574696e6720636f6e74726163746044820152606401610308565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146104205760405162461bcd60e51b815260206004820152602a60248201527f5265776172643a2063616c6c6572206973206e6f742074686520726f7574696e60448201526919c818dbdb9d1c9858dd60b21b6064820152608401610308565b8260038686604051610433929190610ec2565b908152602001604051809103902060008282546104509190610ed2565b90915550506001600160a01b0382166000908152600460205260408120805483929061047d908490610ed2565b90915550505050505050565b6104916109cb565b61049b60006109f8565b565b6104a56109cb565b6001600160a01b0381166104fb5760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c696420636f6e666967206d616e6167657200006044820152606401610308565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600060038383604051610531929190610ec2565b90815260200160405180910390205490505b92915050565b33600090815260046020526040902054806105a65760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b33600090815260046020819052604080832092909255600154915163a9059cbb60e01b81526001600160a01b03858116928201929092526024810184905291169063a9059cbb906044016020604051808303816000875af115801561060f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106339190610ef3565b6106795760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b6040518181526001600160a01b0383169033907fb83fb1252d090ca25aef5be1f19574e9b8e4895082dc2b48c6424c46e95a6f919060200160405180910390a35050565b6000600386866040516106d1929190610ec2565b9081526020016040518091039020549050600081116107325760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b6000308787878560405160200161074d959493929190610f15565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160405160208183030381529060405280519060200120905060006107f08286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a4892505050565b6002549091506001600160a01b038083169116146108505760405162461bcd60e51b815260206004820181905260248201527f5265776172644d616e616765723a20696e76616c6964207369676e61747572656044820152606401610308565b600060038989604051610864929190610ec2565b9081526040519081900360200181209190915560015463a9059cbb60e01b82526001600160a01b03888116600484015260248301869052169063a9059cbb906044016020604051808303816000875af11580156108c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e99190610ef3565b61092f5760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b856001600160a01b03168888604051610949929190610ec2565b604051908190038120858252907f8723f2f3403a916826e55838135b066762479d71e4c348d768917e8478bb1b3a9060200160405180910390a35050505050505050565b6109956109cb565b6001600160a01b0381166109bf57604051631e4fbdf760e01b815260006004820152602401610308565b6109c8816109f8565b50565b6000546001600160a01b0316331461049b5760405163118cdaa760e01b8152336004820152602401610308565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080610a588686610a72565b925092509250610a688282610abf565b5090949350505050565b60008060008351604103610aac5760208401516040850151606086015160001a610a9e88828585610b7c565b955095509550505050610ab8565b50508151600091506002905b9250925092565b6000826003811115610ad357610ad3610f6b565b03610adc575050565b6001826003811115610af057610af0610f6b565b03610b0e5760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610b2257610b22610f6b565b03610b435760405163fce698f760e01b815260048101829052602401610308565b6003826003811115610b5757610b57610f6b565b03610b78576040516335e2f38360e21b815260048101829052602401610308565b5050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610bb75750600091506003905082610c41565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610c0b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c3757506000925060019150829050610c41565b9250600091508190505b9450945094915050565b6001600160a01b03811681146109c857600080fd5b600060208284031215610c7257600080fd5b8135610c7d81610c4b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610cac57600080fd5b813567ffffffffffffffff80821115610cc457600080fd5b818401915084601f830112610cd857600080fd5b813581811115610cea57610cea610c84565b604051601f8201601f19908116603f01168101908382118183101715610d1257610d12610c84565b81604052828152876020848701011115610d2b57600080fd5b826020860160208301376000928101602001929092525095945050505050565b60008083601f840112610d5d57600080fd5b50813567ffffffffffffffff811115610d7557600080fd5b602083019150836020828501011115610d8d57600080fd5b9250929050565b600080600080600060808688031215610dac57600080fd5b853567ffffffffffffffff811115610dc357600080fd5b610dcf88828901610d4b565b909650945050602086013592506040860135610dea81610c4b565b949793965091946060013592915050565b60008060208385031215610e0e57600080fd5b823567ffffffffffffffff811115610e2557600080fd5b610e3185828601610d4b565b90969095509350505050565b600080600080600060608688031215610e5557600080fd5b853567ffffffffffffffff80821115610e6d57600080fd5b610e7989838a01610d4b565b909750955060208801359150610e8e82610c4b565b90935060408701359080821115610ea457600080fd5b50610eb188828901610d4b565b969995985093965092949392505050565b8183823760009101908152919050565b8082018082111561054357634e487b7160e01b600052601160045260246000fd5b600060208284031215610f0557600080fd5b81518015158114610c7d57600080fd5b6001600160a01b0386811682526080602083018190528201859052600090858760a0850137600060a0878501015260a0601f19601f88011684010191508085166040840152508260608301529695505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220aae0c2a00e6d4cdd613424f2004cb5783c4eaabedc79f8ca83ff8a453e8fe69164736f6c63430008140033000000000000000000000000932520c9d285411459d34e80f6ca54c11e1d18510000000000000000000000003daabf4a08e8b8c1e52d86fd8ea7184736ac1931000000000000000000000000346079155f9d856020c2e08d6cc288aefa4d94f20000000000000000000000006bea2925188b477d56c3c34c5d303cbd72d12eee
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638da5cb5b116100a2578063ca0ab07511610071578063ca0ab0751461024f578063d16936da14610262578063d80a558914610275578063f2fde38b14610288578063f39690e41461029b57600080fd5b80638da5cb5b146101ef578063b4e25e8014610200578063bead163f14610213578063c4271ac31461022657600080fd5b80635adae1ec116100de5780635adae1ec146101965780635b7633d0146101c15780635f0e148b146101d4578063715018a6146101e757600080fd5b8063012e83b414610110578063046dc16614610140578063162c0cbb1461015557806358932f2014610168575b600080fd5b600554610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61015361014e366004610c60565b6102ae565b005b610153610163366004610c60565b610333565b610188610176366004610c60565b60046020526000908152604090205481565b604051908152602001610137565b6101886101a4366004610c9a565b805160208183018101805160038252928201919093012091525481565b600254610123906001600160a01b031681565b6101536101e2366004610d94565b6103b3565b610153610489565b6000546001600160a01b0316610123565b61015361020e366004610c60565b61049d565b610188610221366004610dfb565b61051d565b610188610234366004610c60565b6001600160a01b031660009081526004602052604090205490565b600654610123906001600160a01b031681565b610153610270366004610c60565b610549565b610153610283366004610e3d565b6106bd565b610153610296366004610c60565b61098d565b600154610123906001600160a01b031681565b6102b66109cb565b6001600160a01b0381166103115760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c6964207369676e65722061646472657373000060448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61033b6109cb565b6001600160a01b0381166103915760405162461bcd60e51b815260206004820181905260248201527f5265776172643a20696e76616c696420726f7574696e6720636f6e74726163746044820152606401610308565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146104205760405162461bcd60e51b815260206004820152602a60248201527f5265776172643a2063616c6c6572206973206e6f742074686520726f7574696e60448201526919c818dbdb9d1c9858dd60b21b6064820152608401610308565b8260038686604051610433929190610ec2565b908152602001604051809103902060008282546104509190610ed2565b90915550506001600160a01b0382166000908152600460205260408120805483929061047d908490610ed2565b90915550505050505050565b6104916109cb565b61049b60006109f8565b565b6104a56109cb565b6001600160a01b0381166104fb5760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c696420636f6e666967206d616e6167657200006044820152606401610308565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600060038383604051610531929190610ec2565b90815260200160405180910390205490505b92915050565b33600090815260046020526040902054806105a65760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b33600090815260046020819052604080832092909255600154915163a9059cbb60e01b81526001600160a01b03858116928201929092526024810184905291169063a9059cbb906044016020604051808303816000875af115801561060f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106339190610ef3565b6106795760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b6040518181526001600160a01b0383169033907fb83fb1252d090ca25aef5be1f19574e9b8e4895082dc2b48c6424c46e95a6f919060200160405180910390a35050565b6000600386866040516106d1929190610ec2565b9081526020016040518091039020549050600081116107325760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b6000308787878560405160200161074d959493929190610f15565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160405160208183030381529060405280519060200120905060006107f08286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a4892505050565b6002549091506001600160a01b038083169116146108505760405162461bcd60e51b815260206004820181905260248201527f5265776172644d616e616765723a20696e76616c6964207369676e61747572656044820152606401610308565b600060038989604051610864929190610ec2565b9081526040519081900360200181209190915560015463a9059cbb60e01b82526001600160a01b03888116600484015260248301869052169063a9059cbb906044016020604051808303816000875af11580156108c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e99190610ef3565b61092f5760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b856001600160a01b03168888604051610949929190610ec2565b604051908190038120858252907f8723f2f3403a916826e55838135b066762479d71e4c348d768917e8478bb1b3a9060200160405180910390a35050505050505050565b6109956109cb565b6001600160a01b0381166109bf57604051631e4fbdf760e01b815260006004820152602401610308565b6109c8816109f8565b50565b6000546001600160a01b0316331461049b5760405163118cdaa760e01b8152336004820152602401610308565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080610a588686610a72565b925092509250610a688282610abf565b5090949350505050565b60008060008351604103610aac5760208401516040850151606086015160001a610a9e88828585610b7c565b955095509550505050610ab8565b50508151600091506002905b9250925092565b6000826003811115610ad357610ad3610f6b565b03610adc575050565b6001826003811115610af057610af0610f6b565b03610b0e5760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610b2257610b22610f6b565b03610b435760405163fce698f760e01b815260048101829052602401610308565b6003826003811115610b5757610b57610f6b565b03610b78576040516335e2f38360e21b815260048101829052602401610308565b5050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610bb75750600091506003905082610c41565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610c0b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c3757506000925060019150829050610c41565b9250600091508190505b9450945094915050565b6001600160a01b03811681146109c857600080fd5b600060208284031215610c7257600080fd5b8135610c7d81610c4b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610cac57600080fd5b813567ffffffffffffffff80821115610cc457600080fd5b818401915084601f830112610cd857600080fd5b813581811115610cea57610cea610c84565b604051601f8201601f19908116603f01168101908382118183101715610d1257610d12610c84565b81604052828152876020848701011115610d2b57600080fd5b826020860160208301376000928101602001929092525095945050505050565b60008083601f840112610d5d57600080fd5b50813567ffffffffffffffff811115610d7557600080fd5b602083019150836020828501011115610d8d57600080fd5b9250929050565b600080600080600060808688031215610dac57600080fd5b853567ffffffffffffffff811115610dc357600080fd5b610dcf88828901610d4b565b909650945050602086013592506040860135610dea81610c4b565b949793965091946060013592915050565b60008060208385031215610e0e57600080fd5b823567ffffffffffffffff811115610e2557600080fd5b610e3185828601610d4b565b90969095509350505050565b600080600080600060608688031215610e5557600080fd5b853567ffffffffffffffff80821115610e6d57600080fd5b610e7989838a01610d4b565b909750955060208801359150610e8e82610c4b565b90935060408701359080821115610ea457600080fd5b50610eb188828901610d4b565b969995985093965092949392505050565b8183823760009101908152919050565b8082018082111561054357634e487b7160e01b600052601160045260246000fd5b600060208284031215610f0557600080fd5b81518015158114610c7d57600080fd5b6001600160a01b0386811682526080602083018190528201859052600090858760a0850137600060a0878501015260a0601f19601f88011684010191508085166040840152508260608301529695505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220aae0c2a00e6d4cdd613424f2004cb5783c4eaabedc79f8ca83ff8a453e8fe69164736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000932520c9d285411459d34e80f6ca54c11e1d18510000000000000000000000003daabf4a08e8b8c1e52d86fd8ea7184736ac1931000000000000000000000000346079155f9d856020c2e08d6cc288aefa4d94f20000000000000000000000006bea2925188b477d56c3c34c5d303cbd72d12eee
-----Decoded View---------------
Arg [0] : _routingContract (address): 0x932520C9d285411459d34E80f6Ca54c11E1D1851
Arg [1] : _configManager (address): 0x3dAaBF4a08e8B8C1E52d86FD8EA7184736ac1931
Arg [2] : _signerAddress (address): 0x346079155f9D856020c2E08D6cC288aeFA4D94f2
Arg [3] : _susdToken (address): 0x6bea2925188B477d56c3c34c5d303CbD72D12EEE
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000932520c9d285411459d34e80f6ca54c11e1d1851
Arg [1] : 0000000000000000000000003daabf4a08e8b8c1e52d86fd8ea7184736ac1931
Arg [2] : 000000000000000000000000346079155f9d856020c2e08d6cc288aefa4d94f2
Arg [3] : 0000000000000000000000006bea2925188b477d56c3c34c5d303cbd72d12eee
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.