Polygon Sponsored slots available. Book your slot here!
Contract Overview
My Name Tag:
Not Available, login to update
Txn Hash |
Method
|
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xbc1c6bee0046d39ef11dd758f7325b88e0e2ee10ad45c5a413740b96cf6c900c | 0x60a06040 | 29212865 | 356 days 21 hrs ago | 0x77447f2ca205d6405206d1af316f1f5954bc2bb5 | IN | Create: XVMCtreasury | 0 MATIC | 0.011671528 |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
XVMCtreasury
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-06-05 */ // File: xvmc-contracts/wallets/treasuryWallet.sol pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT /// @notice ERC20 token contract interface interface IERC20 { function transfer(address user, uint256 amount) external returns (bool); } interface IToken { function governor() external view returns (address); } contract XVMCtreasury { address public immutable token; // XVMC token(address) /// @notice Event emitted when new transaction is executed event ExecuteTransaction(address indexed token, address indexed recipientAddress, uint256 value); constructor(address _XVMC) { token = _XVMC; } modifier onlyOwner() { require(msg.sender == IToken(token).governor(), "admin: wut?"); _; } /** * 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); } /// @notice Fallback functions to receive native tokens receive() external payable { } fallback() external payable { } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_XVMC","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"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"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405234801561001057600080fd5b5060405161046438038061046483398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c6103ce610096600039600081816083015261028001526103ce6000f3fe60806040526004361061002d5760003560e01c8063d7b7142314610036578063fc0c546a1461005657610034565b3661003457005b005b34801561004257600080fd5b506100346100513660046102c5565b610081565b34801561006257600080fd5b5061006b61027e565b6040516100789190610325565b60405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b1580156100da57600080fd5b505afa1580156100ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061011291906102a2565b6001600160a01b0316336001600160a01b03161461014b5760405162461bcd60e51b815260040161014290610352565b60405180910390fd5b6001600160a01b038316158061016b57506110106001600160a01b038416145b156101ac576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156101a6573d6000803e3d6000fd5b5061022e565b60405163a9059cbb60e01b81526001600160a01b0384169063a9059cbb906101da9085908590600401610339565b602060405180830381600087803b1580156101f457600080fd5b505af1158015610208573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022c9190610305565b505b816001600160a01b0316836001600160a01b03167fc30242710fb95d9ef6302f180394ac6516348508eece470012af3f0c4f934f37836040516102719190610377565b60405180910390a3505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000602082840312156102b3578081fd5b81516102be81610380565b9392505050565b6000806000606084860312156102d9578182fd5b83356102e481610380565b925060208401356102f481610380565b929592945050506040919091013590565b600060208284031215610316578081fd5b815180151581146102be578182fd5b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6020808252600b908201526a61646d696e3a207775743f60a81b604082015260600190565b90815260200190565b6001600160a01b038116811461039557600080fd5b5056fea26469706673582212200335dfdb3e935d1cdaec8ff77c43d7e33209869db7813000eb55042653a515df64736f6c63430008000033000000000000000000000000970ccee657dd831e9c37511aa3eb5302c1eb5eee
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000970ccee657dd831e9c37511aa3eb5302c1eb5eee
-----Decoded View---------------
Arg [0] : _XVMC (address): 0x970ccee657dd831e9c37511aa3eb5302c1eb5eee
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000970ccee657dd831e9c37511aa3eb5302c1eb5eee
Deployed ByteCode Sourcemap
343:1051:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;828:432;;;;;;;;;;-1:-1:-1;828:432:0;;;;;:::i;:::-;;:::i;370:30::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;828:432;713:5;-1:-1:-1;;;;;706:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;692:38:0;:10;-1:-1:-1;;;;;692:38:0;;684:62;;;;-1:-1:-1;;;684:62:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;987:20:0;::::1;::::0;;:76:::1;;-1:-1:-1::0;1021:42:0::1;-1:-1:-1::0;;;;;1011:52:0;::::1;;987:76;983:212;;;1065:35;::::0;-1:-1:-1;;;;;1065:27:0;::::1;::::0;:35;::::1;;;::::0;1093:6;;1065:35:::1;::::0;;;1093:6;1065:27;:35;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;983:212;;;1153:42;::::0;-1:-1:-1;;;1153:42:0;;-1:-1:-1;;;;;1153:23:0;::::1;::::0;::::1;::::0;:42:::1;::::0;1177:9;;1188:6;;1153:42:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;983:212;1236:9;-1:-1:-1::0;;;;;1209:45:0::1;1228:6;-1:-1:-1::0;;;;;1209:45:0::1;;1247:6;1209:45;;;;;;:::i;:::-;;;;;;;;828:432:::0;;;:::o;370:30::-;;;:::o;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;:::-;266:5;95:182;-1:-1:-1;;;95:182:1:o;282:470::-;;;;428:2;416:9;407:7;403:23;399:32;396:2;;;449:6;441;434:22;396:2;493:9;480:23;512:33;539:5;512:33;:::i;:::-;564:5;-1:-1:-1;621:2:1;606:18;;593:32;634:35;593:32;634:35;:::i;:::-;386:366;;688:7;;-1:-1:-1;;;742:2:1;727:18;;;;714:32;;386:366::o;757:297::-;;877:2;865:9;856:7;852:23;848:32;845:2;;;898:6;890;883:22;845:2;935:9;929:16;988:5;981:13;974:21;967:5;964:32;954:2;;1015:6;1007;1000:22;1059:203;-1:-1:-1;;;;;1223:32:1;;;;1205:51;;1193:2;1178:18;;1160:102::o;1267:274::-;-1:-1:-1;;;;;1459:32:1;;;;1441:51;;1523:2;1508:18;;1501:34;1429:2;1414:18;;1396:145::o;1546:335::-;1748:2;1730:21;;;1787:2;1767:18;;;1760:30;-1:-1:-1;;;1821:2:1;1806:18;;1799:41;1872:2;1857:18;;1720:161::o;1886:177::-;2032:25;;;2020:2;2005:18;;1987:76::o;2068:133::-;-1:-1:-1;;;;;2145:31:1;;2135:42;;2125:2;;2191:1;2188;2181:12;2125:2;2115:86;:::o
Swarm Source
ipfs://0335dfdb3e935d1cdaec8ff77c43d7e33209869db7813000eb55042653a515df
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.