Contract 0xeF8470c63d4597A401993E02709847620dbd6778

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x92839eb78a427b35aa5d943e67c88661685a45cf00b5eaaf1b8a0584d5f3bb04Request Withdraw291276692022-06-03 20:12:49366 days 23 hrs ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.011877339426 210.162601541
0xdc0152cc1ad3ea07908dc72b62ef561612c143bd09155aae37ba2fcc2ec1cfe6Request Withdraw291276632022-06-03 20:12:13366 days 23 hrs ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.018819495 333
0x392a6d1250321791d7c49f20912e6849994f60420f79cd00fd300aaeee51f1d6Request Withdraw291276302022-06-03 20:08:55366 days 23 hrs ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.003172132597 80.455844909
0x3e29df7eea09c0df95d4ba429e0d61167a2574621adae670bd248d2a4157ffaaChange Governor291276082022-06-03 20:07:07366 days 23 hrs ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.00195165516 58.213182618
0xcd3ecfbeb420be7fec311b0643bb5561827c617a7390e849242bc86fad58937aChange Governor229992012021-12-26 21:25:58525 days 21 hrs ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.0010057830
0xc23d3e6648ff7e476f4e48116134dfaab770da166ee62c2805d4e8228a6f4572Request Withdraw222097312021-12-06 17:56:57546 days 1 hr ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.001087530
0x41e51fcd8dff12cd61a07471e62864dbb97ee55754ad83148d96b861e1ba5061Request Withdraw222097242021-12-06 17:56:39546 days 1 hr ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.0008474130
0xf7f8f0e46e1dcfef663a474a87384f18231d04b9725db454719fd2555d269feeChange Governor222096232021-12-06 17:53:13546 days 1 hr ago0xdf5cef8491806a9a7ae64f6ab331de3a15e992c2 IN  0xef8470c63d4597a401993e02709847620dbd67780 MATIC0.0015187830
0x3a2e906c36a98e11c61118b082e28838b7cf190812563e58f2553d962b6cca84Transfer222095472021-12-06 17:50:37546 days 1 hr ago0x2c5cb972a943b189f4f83628225aa7f6b3c2ef6a IN  0xef8470c63d4597a401993e02709847620dbd67780.1 MATIC0.0011790856
0xb122785fae6c75782be09916f5c84da8a8b8f982592ddc6bf1d26bc5e9a06e4f0x60a06040222095162021-12-06 17:49:31546 days 1 hr ago0x53f9afb1235d01e538ab4d3714031b30b69ceac0 IN  Create: XVMCtreasury0 MATIC0.0151053930
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xc23d3e6648ff7e476f4e48116134dfaab770da166ee62c2805d4e8228a6f4572222097312021-12-06 17:56:57546 days 1 hr ago 0xef8470c63d4597a401993e02709847620dbd67780xdf5cef8491806a9a7ae64f6ab331de3a15e992c20.1 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
XVMCtreasury

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at polygonscan.com on 2021-12-06
*/

/**
 *Submitted for verification at polygonscan.com on 2021-12-06
*/

/**
 *Submitted for verification at polygonscan.com on 2021-09-30
*/

pragma solidity ^0.8.6;
//SPDX-License-Identifier: UNLICENSED

/// @notice ERC20 token contract interface
interface IERC20 {
    function transfer(address user, uint256 amount) external returns (bool);
}

interface IMasterChef {
    function owner() external view returns (address);
}

contract XVMCtreasury {
  /// @notice Owner address
  address public owner;
  address public immutable masterchef = 0x9BD741F077241b594EBdD745945B577d59C8768e;

  

  /// @notice Event emitted when new transaction is executed
  event ExecuteTransaction(address indexed token, address indexed recipientAddress, uint256 value);

  event ChangeOwner(address newOwner, uint256 time);


  /// @notice Modifier to make a function callable only by the owner.
  modifier onlyOwner {
    require(msg.sender == owner, 'Only owner');
    _;
  }


  /**
   * Initiate withdrawal from treasury wallet
   */
  function requestWithdraw(address _token, address _receiver, uint _value) external onlyOwner {
    // If token address is 0x0, transfer native tokens
    if (_token == address(0) || _token == 0x0000000000000000000000000000000000001010) payable(_receiver).transfer(_value);
    // Otherwise, transfer ERC20 tokens
    else IERC20(_token).transfer(_receiver, _value);

    emit ExecuteTransaction(_token, _receiver, _value);
  }


  /**
   * Updates to the governor address(owner of masterchef)
   */
  function changeGovernor() external {
    address chefOwner = IMasterChef(masterchef).owner();
    require(chefOwner != owner, "nothing to change");

    owner = chefOwner;

    emit ChangeOwner(chefOwner, block.timestamp);
  }

  /// @notice Fallback functions to receive native tokens
  receive() external payable { } 
  fallback() external payable { }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"ChangeOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"recipientAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ExecuteTransaction","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"changeGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"requestWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052739bd741f077241b594ebdd745945b577d59c8768e73ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1681525034801561005757600080fd5b5060805161082861007a6000396000818161033b01526104d701526108286000f3fe6080604052600436106100435760003560e01c80638da5cb5b1461004c578063d7b7142314610077578063f26d5d26146100a0578063fb1db278146100b75761004a565b3661004a57005b005b34801561005857600080fd5b506100616100e2565b60405161006e919061053a565b60405180910390f35b34801561008357600080fd5b5061009e600480360381019061009991906105bc565b610106565b005b3480156100ac57600080fd5b506100b5610337565b005b3480156100c357600080fd5b506100cc6104d5565b6040516100d9919061053a565b60405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018b9061066c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806101fc575061101073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561024d578173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610247573d6000803e3d6000fd5b506102cd565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b815260040161028892919061069b565b6020604051808303816000875af11580156102a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cb91906106fc565b505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc30242710fb95d9ef6302f180394ac6516348508eece470012af3f0c4f934f378360405161032a9190610729565b60405180910390a3505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c89190610759565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610459576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610450906107d2565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5e48e5106b94d2b5a57697d9bc41d3b4994f16d2c5dd326aeaef31ec442b402c81426040516104ca92919061069b565b60405180910390a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610524826104f9565b9050919050565b61053481610519565b82525050565b600060208201905061054f600083018461052b565b92915050565b600080fd5b61056381610519565b811461056e57600080fd5b50565b6000813590506105808161055a565b92915050565b6000819050919050565b61059981610586565b81146105a457600080fd5b50565b6000813590506105b681610590565b92915050565b6000806000606084860312156105d5576105d4610555565b5b60006105e386828701610571565b93505060206105f486828701610571565b9250506040610605868287016105a7565b9150509250925092565b600082825260208201905092915050565b7f4f6e6c79206f776e657200000000000000000000000000000000000000000000600082015250565b6000610656600a8361060f565b915061066182610620565b602082019050919050565b6000602082019050818103600083015261068581610649565b9050919050565b61069581610586565b82525050565b60006040820190506106b0600083018561052b565b6106bd602083018461068c565b9392505050565b60008115159050919050565b6106d9816106c4565b81146106e457600080fd5b50565b6000815190506106f6816106d0565b92915050565b60006020828403121561071257610711610555565b5b6000610720848285016106e7565b91505092915050565b600060208201905061073e600083018461068c565b92915050565b6000815190506107538161055a565b92915050565b60006020828403121561076f5761076e610555565b5b600061077d84828501610744565b91505092915050565b7f6e6f7468696e6720746f206368616e6765000000000000000000000000000000600082015250565b60006107bc60118361060f565b91506107c782610786565b602082019050919050565b600060208201905081810360008301526107eb816107af565b905091905056fea26469706673582212209f2b38ffdde5624fd4ac5756af9309a69b95305c36f274ee4a7d887d0534001664736f6c634300080a0033

Deployed ByteCode Sourcemap

446:1499:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;502:20;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1065:432;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1578:233;;;;;;;;;;;;;:::i;:::-;;527:80;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;502:20;;;;;;;;;;;;:::o;1065:432::-;962:5;;;;;;;;;;948:19;;:10;:19;;;940:42;;;;;;;;;;;;:::i;:::-;;;;;;;;;1242:1:::1;1224:20;;:6;:20;;;:76;;;;1258:42;1248:52;;:6;:52;;;1224:76;1220:212;;;1310:9;1302:27;;:35;1330:6;1302:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;1220:212;;;1397:6;1390:23;;;1414:9;1425:6;1390:42;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1220:212;1473:9;1446:45;;1465:6;1446:45;;;1484:6;1446:45;;;;;;:::i;:::-;;;;;;;;1065:432:::0;;;:::o;1578:233::-;1620:17;1652:10;1640:29;;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1620:51;;1699:5;;;;;;;;;;1686:18;;:9;:18;;;;1678:48;;;;;;;;;;;;:::i;:::-;;;;;;;;;1743:9;1735:5;;:17;;;;;;;;;;;;;;;;;;1766:39;1778:9;1789:15;1766:39;;;;;;;:::i;:::-;;;;;;;;1613:198;1578:233::o;527:80::-;;;:::o;7:126:1:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:96::-;176:7;205:24;223:5;205:24;:::i;:::-;194:35;;139:96;;;:::o;241:118::-;328:24;346:5;328:24;:::i;:::-;323:3;316:37;241:118;;:::o;365:222::-;458:4;496:2;485:9;481:18;473:26;;509:71;577:1;566:9;562:17;553:6;509:71;:::i;:::-;365:222;;;;:::o;674:117::-;783:1;780;773:12;920:122;993:24;1011:5;993:24;:::i;:::-;986:5;983:35;973:63;;1032:1;1029;1022:12;973:63;920:122;:::o;1048:139::-;1094:5;1132:6;1119:20;1110:29;;1148:33;1175:5;1148:33;:::i;:::-;1048:139;;;;:::o;1193:77::-;1230:7;1259:5;1248:16;;1193:77;;;:::o;1276:122::-;1349:24;1367:5;1349:24;:::i;:::-;1342:5;1339:35;1329:63;;1388:1;1385;1378:12;1329:63;1276:122;:::o;1404:139::-;1450:5;1488:6;1475:20;1466:29;;1504:33;1531:5;1504:33;:::i;:::-;1404:139;;;;:::o;1549:619::-;1626:6;1634;1642;1691:2;1679:9;1670:7;1666:23;1662:32;1659:119;;;1697:79;;:::i;:::-;1659:119;1817:1;1842:53;1887:7;1878:6;1867:9;1863:22;1842:53;:::i;:::-;1832:63;;1788:117;1944:2;1970:53;2015:7;2006:6;1995:9;1991:22;1970:53;:::i;:::-;1960:63;;1915:118;2072:2;2098:53;2143:7;2134:6;2123:9;2119:22;2098:53;:::i;:::-;2088:63;;2043:118;1549:619;;;;;:::o;2174:169::-;2258:11;2292:6;2287:3;2280:19;2332:4;2327:3;2323:14;2308:29;;2174:169;;;;:::o;2349:160::-;2489:12;2485:1;2477:6;2473:14;2466:36;2349:160;:::o;2515:366::-;2657:3;2678:67;2742:2;2737:3;2678:67;:::i;:::-;2671:74;;2754:93;2843:3;2754:93;:::i;:::-;2872:2;2867:3;2863:12;2856:19;;2515:366;;;:::o;2887:419::-;3053:4;3091:2;3080:9;3076:18;3068:26;;3140:9;3134:4;3130:20;3126:1;3115:9;3111:17;3104:47;3168:131;3294:4;3168:131;:::i;:::-;3160:139;;2887:419;;;:::o;3312:118::-;3399:24;3417:5;3399:24;:::i;:::-;3394:3;3387:37;3312:118;;:::o;3436:332::-;3557:4;3595:2;3584:9;3580:18;3572:26;;3608:71;3676:1;3665:9;3661:17;3652:6;3608:71;:::i;:::-;3689:72;3757:2;3746:9;3742:18;3733:6;3689:72;:::i;:::-;3436:332;;;;;:::o;3774:90::-;3808:7;3851:5;3844:13;3837:21;3826:32;;3774:90;;;:::o;3870:116::-;3940:21;3955:5;3940:21;:::i;:::-;3933:5;3930:32;3920:60;;3976:1;3973;3966:12;3920:60;3870:116;:::o;3992:137::-;4046:5;4077:6;4071:13;4062:22;;4093:30;4117:5;4093:30;:::i;:::-;3992:137;;;;:::o;4135:345::-;4202:6;4251:2;4239:9;4230:7;4226:23;4222:32;4219:119;;;4257:79;;:::i;:::-;4219:119;4377:1;4402:61;4455:7;4446:6;4435:9;4431:22;4402:61;:::i;:::-;4392:71;;4348:125;4135:345;;;;:::o;4486:222::-;4579:4;4617:2;4606:9;4602:18;4594:26;;4630:71;4698:1;4687:9;4683:17;4674:6;4630:71;:::i;:::-;4486:222;;;;:::o;4714:143::-;4771:5;4802:6;4796:13;4787:22;;4818:33;4845:5;4818:33;:::i;:::-;4714:143;;;;:::o;4863:351::-;4933:6;4982:2;4970:9;4961:7;4957:23;4953:32;4950:119;;;4988:79;;:::i;:::-;4950:119;5108:1;5133:64;5189:7;5180:6;5169:9;5165:22;5133:64;:::i;:::-;5123:74;;5079:128;4863:351;;;;:::o;5220:167::-;5360:19;5356:1;5348:6;5344:14;5337:43;5220:167;:::o;5393:366::-;5535:3;5556:67;5620:2;5615:3;5556:67;:::i;:::-;5549:74;;5632:93;5721:3;5632:93;:::i;:::-;5750:2;5745:3;5741:12;5734:19;;5393:366;;;:::o;5765:419::-;5931:4;5969:2;5958:9;5954:18;5946:26;;6018:9;6012:4;6008:20;6004:1;5993:9;5989:17;5982:47;6046:131;6172:4;6046:131;:::i;:::-;6038:139;;5765:419;;;:::o

Swarm Source

ipfs://9f2b38ffdde5624fd4ac5756af9309a69b95305c36f274ee4a7d887d05340016
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.