Contract 0x8992C82BDDB0A459cE88d1071Bd0B8c31A3db570

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x20064df225542b191da6474d5ac4a08bae87c0a9c725d9619689026fe4011239Swap MATI Cfor X...292709192022-06-07 9:48:2525 days 13 hrs ago0x50adcc4b9e741d549803d2ddaa4288f8c150acf9 IN  0x8992c82bddb0a459ce88d1071bd0b8c31a3db5701 MATIC0.002629290001 30.000000014
0x4685ece8ea78657fdd5b46c75c83b65f78a2a67e57e52556f51c3358ced6c977Swap WET Hfor XV...292707222022-06-07 9:41:3925 days 13 hrs ago0x50adcc4b9e741d549803d2ddaa4288f8c150acf9 IN  0x8992c82bddb0a459ce88d1071bd0b8c31a3db5700 MATIC0.00353502184 30.881104906
0x6ec90c753b888c251c0a40731aa7c00b6730999cf241a074af74d8b88caabe52Swap USD Cfor XV...292699602022-06-07 9:13:1925 days 14 hrs ago0x50adcc4b9e741d549803d2ddaa4288f8c150acf9 IN  0x8992c82bddb0a459ce88d1071bd0b8c31a3db5700 MATIC0.003472764901 32.010000018
0xe6e21b209f745a0ef3ec8afa7dda272485ac1055a96037b815719fb78dd1f7770x60e06040292322072022-06-06 10:27:3526 days 12 hrs ago0xd5b7b040859e87bfbb7807599698786fc2367e2d IN  Create: fixedSwapXVMC0 MATIC0.048612212 44
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x20064df225542b191da6474d5ac4a08bae87c0a9c725d9619689026fe4011239292709192022-06-07 9:48:2525 days 13 hrs ago 0x8992c82bddb0a459ce88d1071bd0b8c31a3db570 0xc44d3fb20a7fa7eff7437c1c39d34a68a2046ba71 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
fixedSwapXVMC

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at polygonscan.com on 2022-06-06
*/

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol


// 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: xvmc-contracts/helper/fixedSwap.sol


pragma solidity ^0.8.0;



interface IToken {
	function governor() external view returns (address);
}
interface IGovernor {
	function treasuryWallet() external view returns (address);
}
interface IChainlink {
	function latestAnswer() external view returns (int256);
}

contract fixedSwapXVMC is ReentrancyGuard {
	address public immutable XVMCtoken;
	address public immutable wETH = 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619;
	address public immutable usdc = 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174;

	uint256 public rate; //amount of XVMC per 1 USDC

	address public chainlinkWETH = 0xF9680D99D6C9589e2a93a78A04A279e509205945;
	address public chainlinkMATIC = 0xAB594600376Ec9fD91F8e885dADF0CE036862dE0;

	event Swap(address sender, address sendToken, uint256 depositAmount, uint256 withdrawAmount);
    
	constructor(address _xvmc, uint256 _rate) {
		XVMCtoken = _xvmc;
		rate = _rate;
	}

	
	function swapWETHforXVMC(uint256 amount) external nonReentrant {
		address _governor = IToken(XVMCtoken).governor();
		address _treasuryWallet = IGovernor(_governor).treasuryWallet();

		uint256 _toSend = getWETHinfo(amount);
		require(IERC20(wETH).transferFrom(msg.sender, _treasuryWallet, amount));
		IERC20(XVMCtoken).transfer(msg.sender, _toSend);

		emit Swap(msg.sender, wETH, amount, _toSend);
	}

	function swapMATICforXVMC(uint256 amount) payable public nonReentrant {
		require(msg.value == amount);

		address _governor = IToken(XVMCtoken).governor();
		address _treasuryWallet = IGovernor(_governor).treasuryWallet();

		payable(_treasuryWallet).transfer(amount);

		uint256 _toSend = getMaticInfo(amount);

		IERC20(XVMCtoken).transfer(msg.sender, _toSend);

		emit Swap(msg.sender, 0x0000000000000000000000000000000000001010, amount, _toSend);
	}

	function swapUSDCforXVMC(uint256 amount) external nonReentrant {
		address _governor = IToken(XVMCtoken).governor();
		address _treasuryWallet = IGovernor(_governor).treasuryWallet();

		uint256 _toSend = amount * 1e12 * rate;

		require(IERC20(usdc).transferFrom(msg.sender, _treasuryWallet, amount));
		IERC20(XVMCtoken).transfer(msg.sender, _toSend);

		emit Swap(msg.sender, usdc, amount, _toSend);
	}

	//governing contract can cancle the sale and withdraw tokens
	//leaves possibility to withdraw any kind of token in case someone sends tokens to contract
	function withdrawTokens(uint256 amount, address _token, bool withdrawAll) external {
		address _governor = IToken(XVMCtoken).governor();
		require(msg.sender == _governor, "Governor only!");
		if(withdrawAll) {
			IERC20(_token).transfer(_governor, IERC20(_token).balanceOf(address(this)));
		} else {
			IERC20(_token).transfer(_governor, amount);
		}
	}
	
	// change swap rate
	function changeSwapRate(uint256 amount) external {
		address _governor = IToken(XVMCtoken).governor();
		require(msg.sender == _governor, "Governor only!");
		
		rate = amount;
	}

	function getWETHinfo(uint256 _amount) public view returns (uint256) {
		uint256 wETHprice = uint256(IChainlink(chainlinkWETH).latestAnswer());

		return (_amount * wETHprice * rate / 1e8); //amount deposited * price of eth * rate(of XVMC per 1udc)
	}

	function getMaticInfo(uint256 _amount) public view returns (uint256) {
		uint256 maticPrice = uint256(IChainlink(chainlinkMATIC).latestAnswer());

		return (_amount * maticPrice * rate / 1e8); 
	}
	
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_xvmc","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"sendToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[],"name":"XVMCtoken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainlinkMATIC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainlinkWETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"changeSwapRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getMaticInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getWETHinfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapMATICforXVMC","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapUSDCforXVMC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapWETHforXVMC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"withdrawAll","type":"bool"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040527f7ceb23fd6bc0add59e62ac25578270cff1b9f61900000000000000000000000060a0527f2791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000060c052600280546001600160a01b031990811673f9680d99d6c9589e2a93a78a04a279e509205945179091556003805490911673ab594600376ec9fd91f8e885dadf0ce036862de01790553480156100a057600080fd5b5060405161130c38038061130c8339810160408190526100bf916100e0565b6001600081905560609290921b6001600160601b0319166080529055610118565b600080604083850312156100f2578182fd5b82516001600160a01b0381168114610108578283fd5b6020939093015192949293505050565b60805160601c60a05160601c60c05160601c6111686101a460003960008181610320015281816104b1015261060a015260008181610d2801528181610e810152610ec3015260008181610250015281816103710152818161055c0152818161070c01528181610950015281816109aa01528181610b0d01528181610bfd0152610dd301526111686000f3fe6080604052600436106100c25760003560e01c80638d93e7691161007f578063dfeed79911610059578063dfeed799146101d3578063e405c2a8146101f3578063f242862114610208578063fa7c1ef31461021d576100c2565b80638d93e7691461018b57806392ebba5e146101ab578063af6a025c146101c0576100c2565b8063046cb712146100c757806308f93bd8146100f25780632c4e722e146101145780633e413bee146101365780636d8e9edf1461014b57806370ba5e1a1461016b575b600080fd5b3480156100d357600080fd5b506100dc61023d565b6040516100e99190610fdf565b60405180910390f35b3480156100fe57600080fd5b5061011261010d366004610f86565b61024c565b005b34801561012057600080fd5b50610129610318565b6040516100e991906110b8565b34801561014257600080fd5b506100dc61031e565b34801561015757600080fd5b50610112610166366004610f86565b610342565b34801561017757600080fd5b50610129610186366004610f86565b61064e565b34801561019757600080fd5b506101126101a6366004610f9e565b610708565b3480156101b757600080fd5b506100dc61094e565b6101126101ce366004610f86565b610972565b3480156101df57600080fd5b506101126101ee366004610f86565b610bce565b3480156101ff57600080fd5b506100dc610eb2565b34801561021457600080fd5b506100dc610ec1565b34801561022957600080fd5b50610129610238366004610f86565b610ee5565b6003546001600160a01b031681565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b1580156102a757600080fd5b505afa1580156102bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102df9190610f36565b9050336001600160a01b038216146103125760405162461bcd60e51b815260040161030990611059565b60405180910390fd5b50600155565b60015481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260005414156103655760405162461bcd60e51b815260040161030990611081565b600260008190555060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b1580156103c857600080fd5b505afa1580156103dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104009190610f36565b90506000816001600160a01b0316634626402b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561043d57600080fd5b505afa158015610451573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104759190610f36565b905060006001548464e8d4a5100061048d91906110e1565b61049791906110e1565b6040516323b872dd60e01b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906104ea90339086908990600401610ff3565b602060405180830381600087803b15801561050457600080fd5b505af1158015610518573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053c9190610f52565b61054557600080fd5b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906105939033908590600401611040565b602060405180830381600087803b1580156105ad57600080fd5b505af11580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e59190610f52565b507ffa2dda1cc1b86e41239702756b13effbc1a092b5c57e3ad320fbe4f3b13fe235337f0000000000000000000000000000000000000000000000000000000000000000868460405161063b9493929190611017565b60405180910390a1505060016000555050565b600080600260009054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561069f57600080fd5b505afa1580156106b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d79190610f6e565b90506305f5e10060015482856106ed91906110e1565b6106f791906110e1565b61070191906110c1565b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b15801561076357600080fd5b505afa158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b9190610f36565b9050336001600160a01b038216146107c55760405162461bcd60e51b815260040161030990611059565b81156108c6576040516370a0823160e01b81526001600160a01b0384169063a9059cbb90839083906370a0823190610801903090600401610fdf565b60206040518083038186803b15801561081957600080fd5b505afa15801561082d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108519190610f6e565b6040518363ffffffff1660e01b815260040161086e929190611040565b602060405180830381600087803b15801561088857600080fd5b505af115801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190610f52565b50610948565b60405163a9059cbb60e01b81526001600160a01b0384169063a9059cbb906108f49084908890600401611040565b602060405180830381600087803b15801561090e57600080fd5b505af1158015610922573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109469190610f52565b505b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260005414156109955760405162461bcd60e51b815260040161030990611081565b60026000553481146109a657600080fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0157600080fd5b505afa158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a399190610f36565b90506000816001600160a01b0316634626402b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a7657600080fd5b505afa158015610a8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aae9190610f36565b6040519091506001600160a01b0382169084156108fc029085906000818181858888f19350505050158015610ae7573d6000803e3d6000fd5b506000610af384610ee5565b60405163a9059cbb60e01b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90610b449033908590600401611040565b602060405180830381600087803b158015610b5e57600080fd5b505af1158015610b72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b969190610f52565b507ffa2dda1cc1b86e41239702756b13effbc1a092b5c57e3ad320fbe4f3b13fe23533611010868460405161063b9493929190611017565b60026000541415610bf15760405162461bcd60e51b815260040161030990611081565b600260008190555060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5457600080fd5b505afa158015610c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8c9190610f36565b90506000816001600160a01b0316634626402b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cc957600080fd5b505afa158015610cdd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d019190610f36565b90506000610d0e8461064e565b6040516323b872dd60e01b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610d6190339086908990600401610ff3565b602060405180830381600087803b158015610d7b57600080fd5b505af1158015610d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db39190610f52565b610dbc57600080fd5b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90610e0a9033908590600401611040565b602060405180830381600087803b158015610e2457600080fd5b505af1158015610e38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5c9190610f52565b507ffa2dda1cc1b86e41239702756b13effbc1a092b5c57e3ad320fbe4f3b13fe235337f0000000000000000000000000000000000000000000000000000000000000000868460405161063b9493929190611017565b6002546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080600360009054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561069f57600080fd5b600060208284031215610f47578081fd5b81516107018161110c565b600060208284031215610f63578081fd5b815161070181611124565b600060208284031215610f7f578081fd5b5051919050565b600060208284031215610f97578081fd5b5035919050565b600080600060608486031215610fb2578182fd5b833592506020840135610fc48161110c565b91506040840135610fd481611124565b809150509250925092565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b03929092168252602082015260400190565b6020808252600e908201526d476f7665726e6f72206f6e6c792160901b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b6000826110dc57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561110757634e487b7160e01b81526011600452602481fd5b500290565b6001600160a01b038116811461112157600080fd5b50565b801515811461112157600080fdfea26469706673582212207aaa18316a53d6e55485d8d920265c8e4b6be9ebb8563397b3dd6a1981060bd664736f6c63430008000033000000000000000000000000970ccee657dd831e9c37511aa3eb5302c1eb5eee00000000000000000000000000000000000000000000000000000000000493e0

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

000000000000000000000000970ccee657dd831e9c37511aa3eb5302c1eb5eee00000000000000000000000000000000000000000000000000000000000493e0

-----Decoded View---------------
Arg [0] : _xvmc (address): 0x970ccee657dd831e9c37511aa3eb5302c1eb5eee
Arg [1] : _rate (uint256): 300000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000970ccee657dd831e9c37511aa3eb5302c1eb5eee
Arg [1] : 00000000000000000000000000000000000000000000000000000000000493e0


Deployed ByteCode Sourcemap

6077:3159:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6449:74;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8582:184;;;;;;;;;;-1:-1:-1;8582:184:0;;;;;:::i;:::-;;:::i;:::-;;6319:19;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;6239:74::-;;;;;;;;;;;;;:::i;7614:415::-;;;;;;;;;;-1:-1:-1;7614:415:0;;;;;:::i;:::-;;:::i;8771:254::-;;;;;;;;;;-1:-1:-1;8771:254:0;;;;;:::i;:::-;;:::i;8191:363::-;;;;;;;;;;-1:-1:-1;8191:363:0;;;;;:::i;:::-;;:::i;6123:34::-;;;;;;;;;;;;;:::i;7142:467::-;;;;;;:::i;:::-;;:::i;6725:412::-;;;;;;;;;;-1:-1:-1;6725:412:0;;;;;:::i;:::-;;:::i;6372:73::-;;;;;;;;;;;;;:::i;6161:74::-;;;;;;;;;;;;;:::i;9030:200::-;;;;;;;;;;-1:-1:-1;9030:200:0;;;;;:::i;:::-;;:::i;6449:74::-;;;-1:-1:-1;;;;;6449:74:0;;:::o;8582:184::-;8636:17;8663:9;-1:-1:-1;;;;;8656:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8636:48;-1:-1:-1;8697:10:0;-1:-1:-1;;;;;8697:23:0;;;8689:50;;;;-1:-1:-1;;;8689:50:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;8748:4:0;:13;8582:184::o;6319:19::-;;;;:::o;6239:74::-;;;:::o;7614:415::-;1865:1;2463:7;;:19;;2455:63;;;;-1:-1:-1;;;2455:63:0;;;;;;;:::i;:::-;1865:1;2596:7;:18;;;;7682:17:::1;7709:9;-1:-1:-1::0;;;;;7702:26:0::1;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7682:48;;7735:23;7771:9;-1:-1:-1::0;;;;;7761:35:0::1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7735:63;;7805:15;7839:4;;7823:6;7832:4;7823:13;;;;:::i;:::-;:20;;;;:::i;:::-;7858:62;::::0;-1:-1:-1;;;7858:62:0;;7805:38;;-1:-1:-1;;;;;;7865:4:0::1;7858:25;::::0;::::1;::::0;:62:::1;::::0;7884:10:::1;::::0;7896:15;;7913:6;;7858:62:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7850:71;;;::::0;::::1;;7926:47;::::0;-1:-1:-1;;;7926:47:0;;-1:-1:-1;;;;;7933:9:0::1;7926:26;::::0;::::1;::::0;:47:::1;::::0;7953:10:::1;::::0;7965:7;;7926:47:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;7985:39;7990:10;8002:4;8008:6;8016:7;7985:39;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;1821:1:0;2775:7;:22;-1:-1:-1;;7614:415:0:o;8771:254::-;8830:7;8844:17;8883:13;;;;;;;;;-1:-1:-1;;;;;8883:13:0;-1:-1:-1;;;;;8872:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8844:69;;8957:3;8950:4;;8938:9;8928:7;:19;;;;:::i;:::-;:26;;;;:::i;:::-;:32;;;;:::i;:::-;8920:41;8771:254;-1:-1:-1;;;8771:254:0:o;8191:363::-;8279:17;8306:9;-1:-1:-1;;;;;8299:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8279:48;-1:-1:-1;8340:10:0;-1:-1:-1;;;;;8340:23:0;;;8332:50;;;;-1:-1:-1;;;8332:50:0;;;;;;;:::i;:::-;8390:11;8387:163;;;8444:39;;-1:-1:-1;;;8444:39:0;;-1:-1:-1;;;;;8409:23:0;;;;;8433:9;;8409:23;;8444:24;;:39;;8477:4;;8444:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8409:75;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;8387:163;;;8502:42;;-1:-1:-1;;;8502:42:0;;-1:-1:-1;;;;;8502:23:0;;;;;:42;;8526:9;;8537:6;;8502:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;8387:163;8191:363;;;;:::o;6123:34::-;;;:::o;7142:467::-;1865:1;2463:7;;:19;;2455:63;;;;-1:-1:-1;;;2455:63:0;;;;;;;:::i;:::-;1865:1;2596:7;:18;7225:9:::1;:19:::0;::::1;7217:28;;;::::0;::::1;;7252:17;7279:9;-1:-1:-1::0;;;;;7272:26:0::1;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7252:48;;7305:23;7341:9;-1:-1:-1::0;;;;;7331:35:0::1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7375:41;::::0;7305:63;;-1:-1:-1;;;;;;7375:33:0;::::1;::::0;:41;::::1;;;::::0;7409:6;;7375:41:::1;::::0;;;7409:6;7375:33;:41;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;7423:15;7441:20;7454:6;7441:12;:20::i;:::-;7468:47;::::0;-1:-1:-1;;;7468:47:0;;7423:38;;-1:-1:-1;;;;;;7475:9:0::1;7468:26;::::0;::::1;::::0;:47:::1;::::0;7495:10:::1;::::0;7423:38;;7468:47:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;7527:77;7532:10;7544:42;7588:6;7596:7;7527:77;;;;;;;;;:::i;6725:412::-:0;1865:1;2463:7;;:19;;2455:63;;;;-1:-1:-1;;;2455:63:0;;;;;;;:::i;:::-;1865:1;2596:7;:18;;;;6793:17:::1;6820:9;-1:-1:-1::0;;;;;6813:26:0::1;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6793:48;;6846:23;6882:9;-1:-1:-1::0;;;;;6872:35:0::1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6846:63;;6916:15;6934:19;6946:6;6934:11;:19::i;:::-;6966:62;::::0;-1:-1:-1;;;6966:62:0;;6916:37;;-1:-1:-1;;;;;;6973:4:0::1;6966:25;::::0;::::1;::::0;:62:::1;::::0;6992:10:::1;::::0;7004:15;;7021:6;;6966:62:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6958:71;;;::::0;::::1;;7034:47;::::0;-1:-1:-1;;;7034:47:0;;-1:-1:-1;;;;;7041:9:0::1;7034:26;::::0;::::1;::::0;:47:::1;::::0;7061:10:::1;::::0;7073:7;;7034:47:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;7093:39;7098:10;7110:4;7116:6;7124:7;7093:39;;;;;;;;;:::i;6372:73::-:0;;;-1:-1:-1;;;;;6372:73:0;;:::o;6161:74::-;;;:::o;9030:200::-;9090:7;9104:18;9144:14;;;;;;;;;-1:-1:-1;;;;;9144:14:0;-1:-1:-1;;;;;9133:39:0;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:263:1;;137:2;125:9;116:7;112:23;108:32;105:2;;;158:6;150;143:22;105:2;195:9;189:16;214:33;241:5;214:33;:::i;282:257::-;;402:2;390:9;381:7;377:23;373:32;370:2;;;423:6;415;408:22;370:2;460:9;454:16;479:30;503:5;479:30;:::i;544:193::-;;666:2;654:9;645:7;641:23;637:32;634:2;;;687:6;679;672:22;634:2;-1:-1:-1;715:16:1;;624:113;-1:-1:-1;624:113:1:o;742:190::-;;854:2;842:9;833:7;829:23;825:32;822:2;;;875:6;867;860:22;822:2;-1:-1:-1;903:23:1;;812:120;-1:-1:-1;812:120:1:o;1136:464::-;;;;1279:2;1267:9;1258:7;1254:23;1250:32;1247:2;;;1300:6;1292;1285:22;1247:2;1341:9;1328:23;1318:33;;1401:2;1390:9;1386:18;1373:32;1414:33;1441:5;1414:33;:::i;:::-;1466:5;-1:-1:-1;1523:2:1;1508:18;;1495:32;1536;1495;1536;:::i;:::-;1587:7;1577:17;;;1237:363;;;;;:::o;1605:203::-;-1:-1:-1;;;;;1769:32:1;;;;1751:51;;1739:2;1724:18;;1706:102::o;1813:375::-;-1:-1:-1;;;;;2071:15:1;;;2053:34;;2123:15;;;;2118:2;2103:18;;2096:43;2170:2;2155:18;;2148:34;;;;2003:2;1988:18;;1970:218::o;2193:447::-;-1:-1:-1;;;;;2480:15:1;;;2462:34;;2532:15;;;;2527:2;2512:18;;2505:43;2579:2;2564:18;;2557:34;2622:2;2607:18;;2600:34;;;;2411:3;2396:19;;2378:262::o;2645:274::-;-1:-1:-1;;;;;2837:32:1;;;;2819:51;;2901:2;2886:18;;2879:34;2807:2;2792:18;;2774:145::o;2924:338::-;3126:2;3108:21;;;3165:2;3145:18;;;3138:30;-1:-1:-1;;;3199:2:1;3184:18;;3177:44;3253:2;3238:18;;3098:164::o;3267:355::-;3469:2;3451:21;;;3508:2;3488:18;;;3481:30;3547:33;3542:2;3527:18;;3520:61;3613:2;3598:18;;3441:181::o;3627:177::-;3773:25;;;3761:2;3746:18;;3728:76::o;3809:217::-;;3875:1;3865:2;;-1:-1:-1;;;3900:31:1;;3954:4;3951:1;3944:15;3982:4;3907:1;3972:15;3865:2;-1:-1:-1;4011:9:1;;3855:171::o;4031:277::-;;4137:1;4133;4129:6;4125:14;4122:1;4119:21;4114:1;4107:9;4100:17;4096:45;4093:2;;;-1:-1:-1;;;4164:37:1;;4224:4;4221:1;4214:15;4258:4;4171:7;4242:21;4093:2;-1:-1:-1;4293:9:1;;4083:225::o;4313:133::-;-1:-1:-1;;;;;4390:31:1;;4380:42;;4370:2;;4436:1;4433;4426:12;4370:2;4360:86;:::o;4451:120::-;4539:5;4532:13;4525:21;4518:5;4515:32;4505:2;;4561:1;4558;4551:12

Swarm Source

ipfs://7aaa18316a53d6e55485d8d920265c8e4b6be9ebb8563397b3dd6a1981060bd6
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.