ETH Price: $3,262.27 (-0.39%)
Gas: 2 Gwei

Contract

0x242f07fDc46e04aC4A582F286ec222075048d459
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw MFC174521742023-06-10 20:36:11414 days ago1686429371IN
0x242f07fD...75048d459
0 ETH0.0041275615.02253976
Withdraw MFC172702012023-05-16 5:27:11439 days ago1684214831IN
0x242f07fD...75048d459
0 ETH0.0121118644.08193977
Withdraw MFC172694372023-05-16 2:52:47439 days ago1684205567IN
0x242f07fD...75048d459
0 ETH0.0174022663.3366979
Withdraw MFC172678042023-05-15 21:21:23440 days ago1684185683IN
0x242f07fD...75048d459
0 ETH0.02785611101.38418717
Withdraw MFC172677982023-05-15 21:20:11440 days ago1684185611IN
0x242f07fD...75048d459
0 ETH0.0272543499.19401136
Withdraw MFC172677922023-05-15 21:18:59440 days ago1684185539IN
0x242f07fD...75048d459
0 ETH0.0268187497.60859995
Withdraw MFC171574232023-04-30 7:37:23455 days ago1682840243IN
0x242f07fD...75048d459
0 ETH0.0095987334.9352207
Withdraw MFC171518732023-04-29 12:51:59456 days ago1682772719IN
0x242f07fD...75048d459
0 ETH0.0088313332.14221406
Withdraw MFC171237422023-04-25 14:02:59460 days ago1682431379IN
0x242f07fD...75048d459
0 ETH0.0135945649.47831199
Withdraw MFC171230842023-04-25 11:50:11460 days ago1682423411IN
0x242f07fD...75048d459
0 ETH0.009215133.53897377
Withdraw MFC170636332023-04-17 2:43:23468 days ago1681699403IN
0x242f07fD...75048d459
0 ETH0.0068699325.00356691
Withdraw MFC170501072023-04-15 4:36:23470 days ago1681533383IN
0x242f07fD...75048d459
0 ETH0.0062160622.6237849
Withdraw MFC170456402023-04-14 13:14:59471 days ago1681478099IN
0x242f07fD...75048d459
0 ETH0.0009492228.82387943
Withdraw MFC170300192023-04-12 6:00:11473 days ago1681279211IN
0x242f07fD...75048d459
0 ETH0.0052371519.06097181
Withdraw MFC170284142023-04-12 0:35:11473 days ago1681259711IN
0x242f07fD...75048d459
0 ETH0.00619922.56167486
Withdraw MFC169758712023-04-04 13:39:35481 days ago1680615575IN
0x242f07fD...75048d459
0 ETH0.0086720831.56262448
Withdraw MFC169541432023-04-01 11:56:47484 days ago1680350207IN
0x242f07fD...75048d459
0 ETH0.0054243919.7424441
Withdraw MFC169445012023-03-31 3:26:23485 days ago1680233183IN
0x242f07fD...75048d459
0 ETH0.0067283324.48821869
Withdraw MFC169173802023-03-27 7:57:47489 days ago1679903867IN
0x242f07fD...75048d459
0 ETH0.0059526421.66505524
Withdraw MFC169094842023-03-26 5:20:35490 days ago1679808035IN
0x242f07fD...75048d459
0 ETH0.0035390112.88049109
Withdraw MFC168960152023-03-24 7:56:35492 days ago1679644595IN
0x242f07fD...75048d459
0 ETH0.0045824516.67814433
Withdraw MFC168882112023-03-23 5:36:23493 days ago1679549783IN
0x242f07fD...75048d459
0 ETH0.0003583410.88139749
Withdraw MFC168882112023-03-23 5:36:23493 days ago1679549783IN
0x242f07fD...75048d459
0 ETH0.0003293210
Withdraw MFC168838952023-03-22 15:03:11494 days ago1679497391IN
0x242f07fD...75048d459
0 ETH0.0251328391.47261411
Withdraw MFC168800592023-03-22 2:07:47494 days ago1679450867IN
0x242f07fD...75048d459
0 ETH0.0038809114.12484042
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
165451272023-02-03 1:57:11541 days ago1675389431
0x242f07fD...75048d459
0.00728423 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Migration

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : Migration.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


/**
 * @title Migration: Contract for Migrating MRI tokens over to the MFC token
 */
contract Migration is Ownable, ReentrancyGuard {
    
    
    bool public isWithdrawEnabled;
    bool public isDepositEnabled;
    uint256 public swapRateMultiplier;
    uint256 public swapRateDivider;

    mapping (address => uint256) public migratedMRI;
    mapping (address => uint256) public totalMFCdue;
    mapping (address => uint256) public withdrawnMFC;

    IERC20 public MRI;
    IERC20 public MFC;
    
    

    event WithdrawnMRI(address indexed user, uint256 amount);
    event WithdrawnMFC(address indexed user, uint256 amount);
    event DepositedMRI(address indexed user, uint256 amount);
    event EmergencyWithdrawMFC(uint256 amount);
    event WithdrawsEnabled(bool status);
    event DepositEnabled(bool status);
    event SwapRateUpdated(uint256 swapRateMultiplier, uint256 swapRateDivider);
    event TokenSet(address tokenMRI, address tokenMFC);
    error WithdrawMFC_NotEnabled();
    error DepositedMRI_NotEnabled();
    error WithdrawMFC_NothingToWithdraw();

    constructor(address _MRI, uint256 _swapRateMultiplier, uint256 _swapRateDivider) {
        MRI =  IERC20(_MRI);
        swapRateMultiplier = _swapRateMultiplier; 
        swapRateDivider = _swapRateDivider;
    }

    /**
     * @dev deposit MRI tokens to get the MFC MFC tokens
     * @param _amount: Amount of MRI tokens to migrate
     */
    function depositMRI(uint256 _amount) external nonReentrant {
        if( !isDepositEnabled) {
            revert DepositedMRI_NotEnabled();
        }
        bool success = MRI.transferFrom(msg.sender, address(this), _amount);
        if( success){
            uint256 MFCAmount = _amount * swapRateMultiplier / swapRateDivider;
            migratedMRI[msg.sender] += _amount;
            totalMFCdue[msg.sender] += MFCAmount;
            emit DepositedMRI(msg.sender, _amount);
        }
        else {
            revert();
        }

    }
    /**
     * @dev Withdraws MFC tokens from the contract
     */
    function withdrawMFC() external nonReentrant {
        if( !isWithdrawEnabled) {
            revert WithdrawMFC_NotEnabled();
        } 
        uint256 withdrawAmount = totalMFCdue[msg.sender] - withdrawnMFC[msg.sender];
      
        if(  withdrawAmount == 0) {
            revert WithdrawMFC_NothingToWithdraw();
        }
        withdrawnMFC[msg.sender] += withdrawAmount;
        bool success = MFC.transfer(msg.sender, withdrawAmount);
        if(!success)
            revert();
        emit WithdrawnMFC(msg.sender, withdrawAmount);
    }

    /**
     * @dev Withdraws MRI tokens from the contract
     * @param percentage: Percentage of MRI tokens to withdraw
     */
    function withdrawMRI(uint256 percentage) external onlyOwner {
        bool success = MRI.transfer(msg.sender, MRI.balanceOf(address(this)) * percentage / 100);
        if(!success)
            revert();
        emit WithdrawnMRI(msg.sender, MRI.balanceOf(address(this)) * percentage / 100);
    }

    /**
     * @dev Owner Withdraws MFC tokens from the contract in case of emergency
     * @param percentage: Percentage of MFC tokens to withdraw
     */
    function emergencyWithdrawMFC(uint256 percentage) external onlyOwner {
        bool success = MFC.transfer(msg.sender, MFC.balanceOf(address(this)) * percentage / 100);
        if(!success)
            revert();
        emit EmergencyWithdrawMFC(MFC.balanceOf(address(this)) * percentage / 100);
    }

    /**
     * @dev Enable withdraws
     * param status: Boolean to enable or disable withdraws
     */
    function enableWithdraws(bool status) external onlyOwner {
        isWithdrawEnabled = status;
        emit WithdrawsEnabled(status);
    }
    /**
     * @dev Enable deposits
     * param status: Boolean to enable or disable deposits
     */
    function enableDeposits(bool status) external onlyOwner {
        isDepositEnabled = status;
        emit DepositEnabled(status);
    }

    /**
    
     */

    /**
     * @dev Sets the swap rate for the migration (therefore: 0 < swapRate < 1 or swapRate > 1 )
     * @param _swapRateMultiplier: Multiplier to calculate the token migration rate
     * @param _swapRateDivider: Divider to calculate the token migration rate 
     */
    function setSwapRate(uint256 _swapRateMultiplier, uint256 _swapRateDivider) external onlyOwner {
        if( _swapRateMultiplier == 0 || _swapRateDivider == 0)
            revert();
        swapRateMultiplier = _swapRateMultiplier;
        swapRateDivider = _swapRateDivider;
        emit SwapRateUpdated(_swapRateMultiplier, _swapRateDivider);
    }

    /**
     * @dev Sets the start time for the migration
     * @param _MRI: Address of the MRI token
     * @param _MFC: Address of the MFC token
     */
    function setTokens(address _MRI, address _MFC) external onlyOwner {
        MRI = IERC20(_MRI);
        MFC = IERC20(_MFC);
        emit TokenSet(_MRI, _MFC);
    }

    /**
     * @dev Returns the amount of MFC tokens that can be withdrawn by the user
     */
    function getWithdrawableTokens(address _user) external view returns(uint256 withdrawableTokens) {
        return totalMFCdue[_user] - withdrawnMFC[_user];
    }

}

File 2 of 5 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 5 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 5 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_MRI","type":"address"},{"internalType":"uint256","name":"_swapRateMultiplier","type":"uint256"},{"internalType":"uint256","name":"_swapRateDivider","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DepositedMRI_NotEnabled","type":"error"},{"inputs":[],"name":"WithdrawMFC_NotEnabled","type":"error"},{"inputs":[],"name":"WithdrawMFC_NothingToWithdraw","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"DepositEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositedMRI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdrawMFC","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapRateMultiplier","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"swapRateDivider","type":"uint256"}],"name":"SwapRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenMRI","type":"address"},{"indexed":false,"internalType":"address","name":"tokenMFC","type":"address"}],"name":"TokenSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawnMFC","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawnMRI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"WithdrawsEnabled","type":"event"},{"inputs":[],"name":"MFC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MRI","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositMRI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"emergencyWithdrawMFC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"enableDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"enableWithdraws","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getWithdrawableTokens","outputs":[{"internalType":"uint256","name":"withdrawableTokens","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDepositEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWithdrawEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"migratedMRI","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":[{"internalType":"uint256","name":"_swapRateMultiplier","type":"uint256"},{"internalType":"uint256","name":"_swapRateDivider","type":"uint256"}],"name":"setSwapRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_MRI","type":"address"},{"internalType":"address","name":"_MFC","type":"address"}],"name":"setTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapRateDivider","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRateMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalMFCdue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMFC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"withdrawMRI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawnMFC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051610f4e380380610f4e83398101604081905261002f916100b8565b61003833610068565b60018055600880546001600160a01b0319166001600160a01b0394909416939093179092556003556004556100fb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100cd57600080fd5b83516001600160a01b03811681146100e457600080fd5b602085015160409095015190969495509392505050565b610e448061010a6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80637011575c116100b8578063af6caba81161007c578063af6caba814610294578063c1d1d585146102a7578063cbc7854e146102b0578063e00d4f4f146102c3578063ec99cad4146102d6578063f2fde38b146102e957600080fd5b80637011575c14610253578063715018a61461026657806376f4eb571461026e578063880dc4e6146102765780638da5cb5b1461028357600080fd5b80633e92088b116100ff5780633e92088b146101d657806354ddfb83146101e95780635656fc781461020957806357cdbf2a1461022b5780636a4ca85c1461024057600080fd5b80630303d2b81461013c5780632287f2991461016f57806333f573c11461019a578063369308a5146101ba57806338dcb96f146101c3575b600080fd5b61015c61014a366004610ca8565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b600954610182906001600160a01b031681565b6040516001600160a01b039091168152602001610166565b61015c6101a8366004610ca8565b60056020526000908152604090205481565b61015c60045481565b61015c6101d1366004610ca8565b6102fc565b600854610182906001600160a01b031681565b61015c6101f7366004610ca8565b60076020526000908152604090205481565b60025461021b90610100900460ff1681565b6040519015158152602001610166565b61023e610239366004610cd8565b610330565b005b61023e61024e366004610cf5565b61038c565b61023e610261366004610cf5565b6104ed565b61023e6106bb565b61023e6106cf565b60025461021b9060ff1681565b6000546001600160a01b0316610182565b61023e6102a2366004610d0e565b610828565b61015c60035481565b61023e6102be366004610d30565b610885565b61023e6102d1366004610cd8565b6108f4565b61023e6102e4366004610cf5565b61093d565b61023e6102f7366004610ca8565b610b0e565b6001600160a01b038116600090815260076020908152604080832054600690925282205461032a9190610d79565b92915050565b610338610b89565b600280548215156101000261ff00199091161790556040517f0e3889322271cd43e48c93a4eb27424a8997918480583252ce16c68f031dfabf9061038190831515815260200190565b60405180910390a150565b610394610be3565b600254610100900460ff166103bc57604051631a9a7a8f60e11b815260040160405180910390fd5b6008546040516323b872dd60e01b8152336004820152306024820152604481018390526000916001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104389190610d8c565b90508015610137576000600454600354846104539190610da9565b61045d9190610dc0565b33600090815260056020526040812080549293508592909190610481908490610de2565b909155505033600090815260066020526040812080548392906104a5908490610de2565b909155505060405183815233907f390512cea3d23fc40cff1860eeb7dc4b3688b6f69347a47de6a46b5735ab1aa19060200160405180910390a250506104ea60018055565b50565b6104f5610b89565b6009546040516370a0823160e01b81523060048201526000916001600160a01b03169063a9059cbb903390606490869085906370a0823190602401602060405180830381865afa15801561054d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105719190610df5565b61057b9190610da9565b6105859190610dc0565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156105d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f49190610d8c565b90508061060057600080fd5b6009546040516370a0823160e01b81523060048201527f190046657fc085307c3cc9faa187e838263e247ad810a6a5d288a7c26d24c5f19160649185916001600160a01b0316906370a0823190602401602060405180830381865afa15801561066d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106919190610df5565b61069b9190610da9565b6106a59190610dc0565b6040519081526020015b60405180910390a15050565b6106c3610b89565b6106cd6000610c3c565b565b6106d7610be3565b60025460ff166106fa5760405163af40d9bb60e01b815260040160405180910390fd5b33600090815260076020908152604080832054600690925282205461071f9190610d79565b905080600003610742576040516333ba09f560e21b815260040160405180910390fd5b3360009081526007602052604081208054839290610761908490610de2565b909155505060095460405163a9059cbb60e01b8152336004820152602481018390526000916001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156107b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107dc9190610d8c565b9050806107e857600080fd5b60405182815233907f9bbae3ceb0cb34c2794eff065b849067783c91f2f53a5e1e931b1136b010227e9060200160405180910390a250506106cd60018055565b610830610b89565b81158061083b575080155b1561084557600080fd5b6003829055600481905560408051838152602081018390527fb5a9256584377130bdd71b7508e860c66ef8bbbda99a95d1ad46adc2c1148f0d91016106af565b61088d610b89565b600880546001600160a01b038481166001600160a01b03199283168117909355600980549185169190921681179091556040805192835260208301919091527f0dd664a155dd89526bb019e22b00291bb7ca9d07ba3ec4a1a76b410da9797ceb91016106af565b6108fc610b89565b6002805460ff19168215159081179091556040519081527f7b6d47974c6660fa22f42f6fc4e262b858d2bb74e81803cef2920582721fb13990602001610381565b610945610b89565b6008546040516370a0823160e01b81523060048201526000916001600160a01b03169063a9059cbb903390606490869085906370a0823190602401602060405180830381865afa15801561099d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c19190610df5565b6109cb9190610da9565b6109d59190610dc0565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a449190610d8c565b905080610a5057600080fd5b6008546040516370a0823160e01b815230600482015233917f8adbda8d64906c8d00be61d525601feeafc16691d15dfa44e6b744f7ae1d91569160649186916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ac1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae59190610df5565b610aef9190610da9565b610af99190610dc0565b60405190815260200160405180910390a25050565b610b16610b89565b6001600160a01b038116610b805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6104ea81610c3c565b6000546001600160a01b031633146106cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b77565b600260015403610c355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b77565b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610ca357600080fd5b919050565b600060208284031215610cba57600080fd5b610cc382610c8c565b9392505050565b80151581146104ea57600080fd5b600060208284031215610cea57600080fd5b8135610cc381610cca565b600060208284031215610d0757600080fd5b5035919050565b60008060408385031215610d2157600080fd5b50508035926020909101359150565b60008060408385031215610d4357600080fd5b610d4c83610c8c565b9150610d5a60208401610c8c565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561032a5761032a610d63565b600060208284031215610d9e57600080fd5b8151610cc381610cca565b808202811582820484141761032a5761032a610d63565b600082610ddd57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561032a5761032a610d63565b600060208284031215610e0757600080fd5b505191905056fea2646970667358221220c04ab765f0df65828b174521e0426d8cb64f95112475a0199ece6da9f55cd3ca64736f6c634300081100330000000000000000000000000913ddae242839f8995c0375493f9a1a3bddc97700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c80637011575c116100b8578063af6caba81161007c578063af6caba814610294578063c1d1d585146102a7578063cbc7854e146102b0578063e00d4f4f146102c3578063ec99cad4146102d6578063f2fde38b146102e957600080fd5b80637011575c14610253578063715018a61461026657806376f4eb571461026e578063880dc4e6146102765780638da5cb5b1461028357600080fd5b80633e92088b116100ff5780633e92088b146101d657806354ddfb83146101e95780635656fc781461020957806357cdbf2a1461022b5780636a4ca85c1461024057600080fd5b80630303d2b81461013c5780632287f2991461016f57806333f573c11461019a578063369308a5146101ba57806338dcb96f146101c3575b600080fd5b61015c61014a366004610ca8565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b600954610182906001600160a01b031681565b6040516001600160a01b039091168152602001610166565b61015c6101a8366004610ca8565b60056020526000908152604090205481565b61015c60045481565b61015c6101d1366004610ca8565b6102fc565b600854610182906001600160a01b031681565b61015c6101f7366004610ca8565b60076020526000908152604090205481565b60025461021b90610100900460ff1681565b6040519015158152602001610166565b61023e610239366004610cd8565b610330565b005b61023e61024e366004610cf5565b61038c565b61023e610261366004610cf5565b6104ed565b61023e6106bb565b61023e6106cf565b60025461021b9060ff1681565b6000546001600160a01b0316610182565b61023e6102a2366004610d0e565b610828565b61015c60035481565b61023e6102be366004610d30565b610885565b61023e6102d1366004610cd8565b6108f4565b61023e6102e4366004610cf5565b61093d565b61023e6102f7366004610ca8565b610b0e565b6001600160a01b038116600090815260076020908152604080832054600690925282205461032a9190610d79565b92915050565b610338610b89565b600280548215156101000261ff00199091161790556040517f0e3889322271cd43e48c93a4eb27424a8997918480583252ce16c68f031dfabf9061038190831515815260200190565b60405180910390a150565b610394610be3565b600254610100900460ff166103bc57604051631a9a7a8f60e11b815260040160405180910390fd5b6008546040516323b872dd60e01b8152336004820152306024820152604481018390526000916001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104389190610d8c565b90508015610137576000600454600354846104539190610da9565b61045d9190610dc0565b33600090815260056020526040812080549293508592909190610481908490610de2565b909155505033600090815260066020526040812080548392906104a5908490610de2565b909155505060405183815233907f390512cea3d23fc40cff1860eeb7dc4b3688b6f69347a47de6a46b5735ab1aa19060200160405180910390a250506104ea60018055565b50565b6104f5610b89565b6009546040516370a0823160e01b81523060048201526000916001600160a01b03169063a9059cbb903390606490869085906370a0823190602401602060405180830381865afa15801561054d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105719190610df5565b61057b9190610da9565b6105859190610dc0565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156105d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f49190610d8c565b90508061060057600080fd5b6009546040516370a0823160e01b81523060048201527f190046657fc085307c3cc9faa187e838263e247ad810a6a5d288a7c26d24c5f19160649185916001600160a01b0316906370a0823190602401602060405180830381865afa15801561066d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106919190610df5565b61069b9190610da9565b6106a59190610dc0565b6040519081526020015b60405180910390a15050565b6106c3610b89565b6106cd6000610c3c565b565b6106d7610be3565b60025460ff166106fa5760405163af40d9bb60e01b815260040160405180910390fd5b33600090815260076020908152604080832054600690925282205461071f9190610d79565b905080600003610742576040516333ba09f560e21b815260040160405180910390fd5b3360009081526007602052604081208054839290610761908490610de2565b909155505060095460405163a9059cbb60e01b8152336004820152602481018390526000916001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156107b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107dc9190610d8c565b9050806107e857600080fd5b60405182815233907f9bbae3ceb0cb34c2794eff065b849067783c91f2f53a5e1e931b1136b010227e9060200160405180910390a250506106cd60018055565b610830610b89565b81158061083b575080155b1561084557600080fd5b6003829055600481905560408051838152602081018390527fb5a9256584377130bdd71b7508e860c66ef8bbbda99a95d1ad46adc2c1148f0d91016106af565b61088d610b89565b600880546001600160a01b038481166001600160a01b03199283168117909355600980549185169190921681179091556040805192835260208301919091527f0dd664a155dd89526bb019e22b00291bb7ca9d07ba3ec4a1a76b410da9797ceb91016106af565b6108fc610b89565b6002805460ff19168215159081179091556040519081527f7b6d47974c6660fa22f42f6fc4e262b858d2bb74e81803cef2920582721fb13990602001610381565b610945610b89565b6008546040516370a0823160e01b81523060048201526000916001600160a01b03169063a9059cbb903390606490869085906370a0823190602401602060405180830381865afa15801561099d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c19190610df5565b6109cb9190610da9565b6109d59190610dc0565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a449190610d8c565b905080610a5057600080fd5b6008546040516370a0823160e01b815230600482015233917f8adbda8d64906c8d00be61d525601feeafc16691d15dfa44e6b744f7ae1d91569160649186916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ac1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae59190610df5565b610aef9190610da9565b610af99190610dc0565b60405190815260200160405180910390a25050565b610b16610b89565b6001600160a01b038116610b805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6104ea81610c3c565b6000546001600160a01b031633146106cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b77565b600260015403610c355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b77565b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610ca357600080fd5b919050565b600060208284031215610cba57600080fd5b610cc382610c8c565b9392505050565b80151581146104ea57600080fd5b600060208284031215610cea57600080fd5b8135610cc381610cca565b600060208284031215610d0757600080fd5b5035919050565b60008060408385031215610d2157600080fd5b50508035926020909101359150565b60008060408385031215610d4357600080fd5b610d4c83610c8c565b9150610d5a60208401610c8c565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561032a5761032a610d63565b600060208284031215610d9e57600080fd5b8151610cc381610cca565b808202811582820484141761032a5761032a610d63565b600082610ddd57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561032a5761032a610d63565b600060208284031215610e0757600080fd5b505191905056fea2646970667358221220c04ab765f0df65828b174521e0426d8cb64f95112475a0199ece6da9f55cd3ca64736f6c63430008110033

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

0000000000000000000000000913ddae242839f8995c0375493f9a1a3bddc97700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _MRI (address): 0x0913dDAE242839f8995c0375493f9a1A3Bddc977
Arg [1] : _swapRateMultiplier (uint256): 1
Arg [2] : _swapRateDivider (uint256): 1

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000913ddae242839f8995c0375493f9a1a3bddc977
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001


Block Transaction Difficulty 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
Loading...
Loading
[ Download: CSV Export  ]
[ 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.