S Price: $0.730485 (+8.54%)

Contract

0xfD78F308cc39e029a7D4eFD1FaCE938A220F66E9

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardManager

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 6 : RewardManager.sol
// 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 {
        uint256 amountDeposited = amount + deployerAmount;
        susdToken.transferFrom(msg.sender, address(this), amountDeposited);
        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];
    }
}

File 2 of 6 : Ownable.sol
// 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);
    }
}

File 3 of 6 : IERC20.sol
// 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);
}

File 4 of 6 : Context.sol
// 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;
    }
}

File 5 of 6 : ECDSA.sol
// 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);
        }
    }
}

File 6 of 6 : ConfigManager.sol
// 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;
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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"}]

60806040523480156200001157600080fd5b5060405162001292380380620012928339810160408190526200003491620001e4565b33806200005c57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000678162000177565b50600580546001600160a01b0319166001600160a01b03868116919091179091558216620000d85760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c6964207369676e657220616464726573730000604482015260640162000053565b6001600160a01b038116620001305760405162461bcd60e51b815260206004820152601a60248201527f5265776172643a20696e76616c6964205355534420746f6b656e000000000000604482015260640162000053565b600280546001600160a01b039384166001600160a01b0319918216179091556001805492841692821692909217909155600680549390921692169190911790555062000241565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001df57600080fd5b919050565b60008060008060808587031215620001fb57600080fd5b6200020685620001c7565b93506200021660208601620001c7565b92506200022660408601620001c7565b91506200023660608601620001c7565b905092959194509250565b61104180620002516000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638da5cb5b116100a2578063ca0ab07511610071578063ca0ab0751461024f578063d16936da14610262578063d80a558914610275578063f2fde38b14610288578063f39690e41461029b57600080fd5b80638da5cb5b146101ef578063b4e25e8014610200578063bead163f14610213578063c4271ac31461022657600080fd5b80635adae1ec116100de5780635adae1ec146101965780635b7633d0146101c15780635f0e148b146101d4578063715018a6146101e757600080fd5b8063012e83b414610110578063046dc16614610140578063162c0cbb1461015557806358932f2014610168575b600080fd5b600554610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61015361014e366004610cea565b6102ae565b005b610153610163366004610cea565b610333565b610188610176366004610cea565b60046020526000908152604090205481565b604051908152602001610137565b6101886101a4366004610d24565b805160208183018101805160038252928201919093012091525481565b600254610123906001600160a01b031681565b6101536101e2366004610e1e565b6103b3565b610153610513565b6000546001600160a01b0316610123565b61015361020e366004610cea565b610527565b610188610221366004610e85565b6105a7565b610188610234366004610cea565b6001600160a01b031660009081526004602052604090205490565b600654610123906001600160a01b031681565b610153610270366004610cea565b6105d3565b610153610283366004610ec7565b610747565b610153610296366004610cea565b610a17565b600154610123906001600160a01b031681565b6102b6610a55565b6001600160a01b0381166103115760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c6964207369676e65722061646472657373000060448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61033b610a55565b6001600160a01b0381166103915760405162461bcd60e51b815260206004820181905260248201527f5265776172643a20696e76616c696420726f7574696e6720636f6e74726163746044820152606401610308565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146104205760405162461bcd60e51b815260206004820152602a60248201527f5265776172643a2063616c6c6572206973206e6f742074686520726f7574696e60448201526919c818dbdb9d1c9858dd60b21b6064820152608401610308565b600061042c8285610f4c565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610484573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a89190610f6d565b5083600387876040516104bc929190610f8f565b908152602001604051809103902060008282546104d99190610f4c565b90915550506001600160a01b03831660009081526004602052604081208054849290610506908490610f4c565b9091555050505050505050565b61051b610a55565b6105256000610a82565b565b61052f610a55565b6001600160a01b0381166105855760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c696420636f6e666967206d616e6167657200006044820152606401610308565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000600383836040516105bb929190610f8f565b90815260200160405180910390205490505b92915050565b33600090815260046020526040902054806106305760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b33600090815260046020819052604080832092909255600154915163a9059cbb60e01b81526001600160a01b03858116928201929092526024810184905291169063a9059cbb906044016020604051808303816000875af1158015610699573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bd9190610f6d565b6107035760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b6040518181526001600160a01b0383169033907fb83fb1252d090ca25aef5be1f19574e9b8e4895082dc2b48c6424c46e95a6f919060200160405180910390a35050565b60006003868660405161075b929190610f8f565b9081526020016040518091039020549050600081116107bc5760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b600030878787856040516020016107d7959493929190610f9f565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050600061087a8286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610ad292505050565b6002549091506001600160a01b038083169116146108da5760405162461bcd60e51b815260206004820181905260248201527f5265776172644d616e616765723a20696e76616c6964207369676e61747572656044820152606401610308565b6000600389896040516108ee929190610f8f565b9081526040519081900360200181209190915560015463a9059cbb60e01b82526001600160a01b03888116600484015260248301869052169063a9059cbb906044016020604051808303816000875af115801561094f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109739190610f6d565b6109b95760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b856001600160a01b031688886040516109d3929190610f8f565b604051908190038120858252907f8723f2f3403a916826e55838135b066762479d71e4c348d768917e8478bb1b3a9060200160405180910390a35050505050505050565b610a1f610a55565b6001600160a01b038116610a4957604051631e4fbdf760e01b815260006004820152602401610308565b610a5281610a82565b50565b6000546001600160a01b031633146105255760405163118cdaa760e01b8152336004820152602401610308565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080610ae28686610afc565b925092509250610af28282610b49565b5090949350505050565b60008060008351604103610b365760208401516040850151606086015160001a610b2888828585610c06565b955095509550505050610b42565b50508151600091506002905b9250925092565b6000826003811115610b5d57610b5d610ff5565b03610b66575050565b6001826003811115610b7a57610b7a610ff5565b03610b985760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610bac57610bac610ff5565b03610bcd5760405163fce698f760e01b815260048101829052602401610308565b6003826003811115610be157610be1610ff5565b03610c02576040516335e2f38360e21b815260048101829052602401610308565b5050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610c415750600091506003905082610ccb565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610c95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610cc157506000925060019150829050610ccb565b9250600091508190505b9450945094915050565b6001600160a01b0381168114610a5257600080fd5b600060208284031215610cfc57600080fd5b8135610d0781610cd5565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610d3657600080fd5b813567ffffffffffffffff80821115610d4e57600080fd5b818401915084601f830112610d6257600080fd5b813581811115610d7457610d74610d0e565b604051601f8201601f19908116603f01168101908382118183101715610d9c57610d9c610d0e565b81604052828152876020848701011115610db557600080fd5b826020860160208301376000928101602001929092525095945050505050565b60008083601f840112610de757600080fd5b50813567ffffffffffffffff811115610dff57600080fd5b602083019150836020828501011115610e1757600080fd5b9250929050565b600080600080600060808688031215610e3657600080fd5b853567ffffffffffffffff811115610e4d57600080fd5b610e5988828901610dd5565b909650945050602086013592506040860135610e7481610cd5565b949793965091946060013592915050565b60008060208385031215610e9857600080fd5b823567ffffffffffffffff811115610eaf57600080fd5b610ebb85828601610dd5565b90969095509350505050565b600080600080600060608688031215610edf57600080fd5b853567ffffffffffffffff80821115610ef757600080fd5b610f0389838a01610dd5565b909750955060208801359150610f1882610cd5565b90935060408701359080821115610f2e57600080fd5b50610f3b88828901610dd5565b969995985093965092949392505050565b808201808211156105cd57634e487b7160e01b600052601160045260246000fd5b600060208284031215610f7f57600080fd5b81518015158114610d0757600080fd5b8183823760009101908152919050565b6001600160a01b0386811682526080602083018190528201859052600090858760a0850137600060a0878501015260a0601f19601f88011684010191508085166040840152508260608301529695505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220b7fe885a264551a4db64a50706ff6ce178350e959160f35fce865a69419618cf64736f6c6343000814003300000000000000000000000074eea2f23ac411fbf1be36df86ba8f7505d0374800000000000000000000000051270835786e35be0f3e05cde430f8380d508eb7000000000000000000000000346079155f9d856020c2e08d6cc288aefa4d94f20000000000000000000000006bea2925188b477d56c3c34c5d303cbd72d12eee

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638da5cb5b116100a2578063ca0ab07511610071578063ca0ab0751461024f578063d16936da14610262578063d80a558914610275578063f2fde38b14610288578063f39690e41461029b57600080fd5b80638da5cb5b146101ef578063b4e25e8014610200578063bead163f14610213578063c4271ac31461022657600080fd5b80635adae1ec116100de5780635adae1ec146101965780635b7633d0146101c15780635f0e148b146101d4578063715018a6146101e757600080fd5b8063012e83b414610110578063046dc16614610140578063162c0cbb1461015557806358932f2014610168575b600080fd5b600554610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61015361014e366004610cea565b6102ae565b005b610153610163366004610cea565b610333565b610188610176366004610cea565b60046020526000908152604090205481565b604051908152602001610137565b6101886101a4366004610d24565b805160208183018101805160038252928201919093012091525481565b600254610123906001600160a01b031681565b6101536101e2366004610e1e565b6103b3565b610153610513565b6000546001600160a01b0316610123565b61015361020e366004610cea565b610527565b610188610221366004610e85565b6105a7565b610188610234366004610cea565b6001600160a01b031660009081526004602052604090205490565b600654610123906001600160a01b031681565b610153610270366004610cea565b6105d3565b610153610283366004610ec7565b610747565b610153610296366004610cea565b610a17565b600154610123906001600160a01b031681565b6102b6610a55565b6001600160a01b0381166103115760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c6964207369676e65722061646472657373000060448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61033b610a55565b6001600160a01b0381166103915760405162461bcd60e51b815260206004820181905260248201527f5265776172643a20696e76616c696420726f7574696e6720636f6e74726163746044820152606401610308565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146104205760405162461bcd60e51b815260206004820152602a60248201527f5265776172643a2063616c6c6572206973206e6f742074686520726f7574696e60448201526919c818dbdb9d1c9858dd60b21b6064820152608401610308565b600061042c8285610f4c565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610484573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a89190610f6d565b5083600387876040516104bc929190610f8f565b908152602001604051809103902060008282546104d99190610f4c565b90915550506001600160a01b03831660009081526004602052604081208054849290610506908490610f4c565b9091555050505050505050565b61051b610a55565b6105256000610a82565b565b61052f610a55565b6001600160a01b0381166105855760405162461bcd60e51b815260206004820152601e60248201527f5265776172643a20696e76616c696420636f6e666967206d616e6167657200006044820152606401610308565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000600383836040516105bb929190610f8f565b90815260200160405180910390205490505b92915050565b33600090815260046020526040902054806106305760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b33600090815260046020819052604080832092909255600154915163a9059cbb60e01b81526001600160a01b03858116928201929092526024810184905291169063a9059cbb906044016020604051808303816000875af1158015610699573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bd9190610f6d565b6107035760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b6040518181526001600160a01b0383169033907fb83fb1252d090ca25aef5be1f19574e9b8e4895082dc2b48c6424c46e95a6f919060200160405180910390a35050565b60006003868660405161075b929190610f8f565b9081526020016040518091039020549050600081116107bc5760405162461bcd60e51b815260206004820152601b60248201527f5265776172643a206e6f2072657761726420617661696c61626c6500000000006044820152606401610308565b600030878787856040516020016107d7959493929190610f9f565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050600061087a8286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610ad292505050565b6002549091506001600160a01b038083169116146108da5760405162461bcd60e51b815260206004820181905260248201527f5265776172644d616e616765723a20696e76616c6964207369676e61747572656044820152606401610308565b6000600389896040516108ee929190610f8f565b9081526040519081900360200181209190915560015463a9059cbb60e01b82526001600160a01b03888116600484015260248301869052169063a9059cbb906044016020604051808303816000875af115801561094f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109739190610f6d565b6109b95760405162461bcd60e51b815260206004820152601760248201527614995dd85c990e881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610308565b856001600160a01b031688886040516109d3929190610f8f565b604051908190038120858252907f8723f2f3403a916826e55838135b066762479d71e4c348d768917e8478bb1b3a9060200160405180910390a35050505050505050565b610a1f610a55565b6001600160a01b038116610a4957604051631e4fbdf760e01b815260006004820152602401610308565b610a5281610a82565b50565b6000546001600160a01b031633146105255760405163118cdaa760e01b8152336004820152602401610308565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080610ae28686610afc565b925092509250610af28282610b49565b5090949350505050565b60008060008351604103610b365760208401516040850151606086015160001a610b2888828585610c06565b955095509550505050610b42565b50508151600091506002905b9250925092565b6000826003811115610b5d57610b5d610ff5565b03610b66575050565b6001826003811115610b7a57610b7a610ff5565b03610b985760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610bac57610bac610ff5565b03610bcd5760405163fce698f760e01b815260048101829052602401610308565b6003826003811115610be157610be1610ff5565b03610c02576040516335e2f38360e21b815260048101829052602401610308565b5050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610c415750600091506003905082610ccb565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610c95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610cc157506000925060019150829050610ccb565b9250600091508190505b9450945094915050565b6001600160a01b0381168114610a5257600080fd5b600060208284031215610cfc57600080fd5b8135610d0781610cd5565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610d3657600080fd5b813567ffffffffffffffff80821115610d4e57600080fd5b818401915084601f830112610d6257600080fd5b813581811115610d7457610d74610d0e565b604051601f8201601f19908116603f01168101908382118183101715610d9c57610d9c610d0e565b81604052828152876020848701011115610db557600080fd5b826020860160208301376000928101602001929092525095945050505050565b60008083601f840112610de757600080fd5b50813567ffffffffffffffff811115610dff57600080fd5b602083019150836020828501011115610e1757600080fd5b9250929050565b600080600080600060808688031215610e3657600080fd5b853567ffffffffffffffff811115610e4d57600080fd5b610e5988828901610dd5565b909650945050602086013592506040860135610e7481610cd5565b949793965091946060013592915050565b60008060208385031215610e9857600080fd5b823567ffffffffffffffff811115610eaf57600080fd5b610ebb85828601610dd5565b90969095509350505050565b600080600080600060608688031215610edf57600080fd5b853567ffffffffffffffff80821115610ef757600080fd5b610f0389838a01610dd5565b909750955060208801359150610f1882610cd5565b90935060408701359080821115610f2e57600080fd5b50610f3b88828901610dd5565b969995985093965092949392505050565b808201808211156105cd57634e487b7160e01b600052601160045260246000fd5b600060208284031215610f7f57600080fd5b81518015158114610d0757600080fd5b8183823760009101908152919050565b6001600160a01b0386811682526080602083018190528201859052600090858760a0850137600060a0878501015260a0601f19601f88011684010191508085166040840152508260608301529695505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220b7fe885a264551a4db64a50706ff6ce178350e959160f35fce865a69419618cf64736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000074eea2f23ac411fbf1be36df86ba8f7505d0374800000000000000000000000051270835786e35be0f3e05cde430f8380d508eb7000000000000000000000000346079155f9d856020c2e08d6cc288aefa4d94f20000000000000000000000006bea2925188b477d56c3c34c5d303cbd72d12eee

-----Decoded View---------------
Arg [0] : _routingContract (address): 0x74EEa2f23aC411fBf1bE36DF86bA8F7505D03748
Arg [1] : _configManager (address): 0x51270835786E35Be0f3E05CDe430f8380d508Eb7
Arg [2] : _signerAddress (address): 0x346079155f9D856020c2E08D6cC288aeFA4D94f2
Arg [3] : _susdToken (address): 0x6bea2925188B477d56c3c34c5d303CbD72D12EEE

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000074eea2f23ac411fbf1be36df86ba8f7505d03748
Arg [1] : 00000000000000000000000051270835786e35be0f3e05cde430f8380d508eb7
Arg [2] : 000000000000000000000000346079155f9d856020c2e08d6cc288aefa4d94f2
Arg [3] : 0000000000000000000000006bea2925188b477d56c3c34c5d303cbd72d12eee


Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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.