Contract 0xaB69d8Ce8b5A1b79a0BBc465764c52e5e2edC677

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3561f0a037c5b732cb0dd0b2c38cae3ab73303ca9d68ca1a907c69baaa51fd950x60a06040292283982022-06-06 8:07:2826 days 14 hrs ago0x9c36bc6b8c107014b6e86536d809b74c6fdb8ce9 IN  Create: XVMCvotingProxy0 MATIC0.028813796 44
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
XVMCvotingProxy

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
*/

// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.0;

interface IXVMCgovernor {
    function acPool1() external returns (address);
    function acPool2() external returns (address);
    function acPool3() external returns (address);
    function acPool4() external returns (address);
    function acPool5() external returns (address);
    function acPool6() external returns (address);
}

interface IToken {
    function governor() external view returns (address);
}

interface IacPool {
    function voteForProposal(uint256 proposalID) external;
    function setDelegate(address _delegate) external;
}

contract XVMCvotingProxy {
    address public immutable xvmcToken;
    
    address public acPool1;
    address public acPool2;
    address public acPool3;
    address public acPool4;
    address public acPool5;
    address public acPool6;


    constructor(address _xvmc) {
        xvmcToken = _xvmc;
    }


    function updatePools() external {
        address governor = IToken(xvmcToken).governor();

        acPool1 = IXVMCgovernor(governor).acPool1();
        acPool2 = IXVMCgovernor(governor).acPool2();
        acPool3 = IXVMCgovernor(governor).acPool3();
        acPool4 = IXVMCgovernor(governor).acPool4();
        acPool5 = IXVMCgovernor(governor).acPool5();
        acPool6 = IXVMCgovernor(governor).acPool6();
    }

    function proxyVote(uint256 _forID) external {
        IacPool(acPool1).voteForProposal(_forID);
        IacPool(acPool2).voteForProposal(_forID);
        IacPool(acPool3).voteForProposal(_forID);
        IacPool(acPool4).voteForProposal(_forID);
        IacPool(acPool5).voteForProposal(_forID);
        IacPool(acPool6).voteForProposal(_forID);
    }

    function proxySetDelegate(address _forWallet) external {
        IacPool(acPool1).setDelegate(_forWallet);
        IacPool(acPool2).setDelegate(_forWallet);
        IacPool(acPool3).setDelegate(_forWallet);
        IacPool(acPool4).setDelegate(_forWallet);
        IacPool(acPool5).setDelegate(_forWallet);
        IacPool(acPool6).setDelegate(_forWallet);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_xvmc","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"acPool1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acPool2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acPool3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acPool4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acPool5","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acPool6","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_forWallet","type":"address"}],"name":"proxySetDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_forID","type":"uint256"}],"name":"proxyVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xvmcToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a060405234801561001057600080fd5b50604051610b74380380610b7483398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c610add6100976000396000818161039e01526103c40152610add6000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806357770bee1161006657806357770bee146100ee5780635ec232f1146100f65780638042a465146100fe578063b2922ec414610111578063f2fa0bb0146101195761009e565b8063092b4a3e146100a35780632818dbde146100c1578063296d77fb146100d65780632a9f51d7146100de5780632ad25f81146100e6575b600080fd5b6100ab610121565b6040516100b89190610a72565b60405180910390f35b6100d46100cf366004610a1b565b610130565b005b6100ab61037e565b6100ab61038d565b6100ab61039c565b6100d46103c0565b6100ab6107db565b6100d461010c366004610a5a565b6107ea565b6100ab6109fd565b6100ab610a0c565b6005546001600160a01b031681565b60005460405163ca5eb5e160e01b81526001600160a01b039091169063ca5eb5e190610160908490600401610a72565b600060405180830381600087803b15801561017a57600080fd5b505af115801561018e573d6000803e3d6000fd5b505060015460405163ca5eb5e160e01b81526001600160a01b03909116925063ca5eb5e191506101c2908490600401610a72565b600060405180830381600087803b1580156101dc57600080fd5b505af11580156101f0573d6000803e3d6000fd5b505060025460405163ca5eb5e160e01b81526001600160a01b03909116925063ca5eb5e19150610224908490600401610a72565b600060405180830381600087803b15801561023e57600080fd5b505af1158015610252573d6000803e3d6000fd5b505060035460405163ca5eb5e160e01b81526001600160a01b03909116925063ca5eb5e19150610286908490600401610a72565b600060405180830381600087803b1580156102a057600080fd5b505af11580156102b4573d6000803e3d6000fd5b50506004805460405163ca5eb5e160e01b81526001600160a01b03909116935063ca5eb5e192506102e791859101610a72565b600060405180830381600087803b15801561030157600080fd5b505af1158015610315573d6000803e3d6000fd5b505060055460405163ca5eb5e160e01b81526001600160a01b03909116925063ca5eb5e19150610349908490600401610a72565b600060405180830381600087803b15801561036357600080fd5b505af1158015610377573d6000803e3d6000fd5b5050505050565b6001546001600160a01b031681565b6000546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b15801561041b57600080fd5b505afa15801561042f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104539190610a3e565b9050806001600160a01b0316632a9f51d76040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561049057600080fd5b505af11580156104a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c89190610a3e565b6000806101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b031663296d77fb6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561052857600080fd5b505af115801561053c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105609190610a3e565b600160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b031663b2922ec46040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156105c157600080fd5b505af11580156105d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f99190610a3e565b600260006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b0316635ec232f16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561065a57600080fd5b505af115801561066e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106929190610a3e565b600360006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b031663f2fa0bb06040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156106f357600080fd5b505af1158015610707573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072b9190610a3e565b600480546001600160a01b0319166001600160a01b0392831617815560408051630495a51f60e11b815290519284169263092b4a3e928281019260209291908290030181600087803b15801561078057600080fd5b505af1158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190610a3e565b600580546001600160a01b0319166001600160a01b039290921691909117905550565b6003546001600160a01b031681565b6000546040516222e36760e51b81526001600160a01b039091169063045c6ce090610819908490600401610a86565b600060405180830381600087803b15801561083357600080fd5b505af1158015610847573d6000803e3d6000fd5b50506001546040516222e36760e51b81526001600160a01b03909116925063045c6ce0915061087a908490600401610a86565b600060405180830381600087803b15801561089457600080fd5b505af11580156108a8573d6000803e3d6000fd5b50506002546040516222e36760e51b81526001600160a01b03909116925063045c6ce091506108db908490600401610a86565b600060405180830381600087803b1580156108f557600080fd5b505af1158015610909573d6000803e3d6000fd5b50506003546040516222e36760e51b81526001600160a01b03909116925063045c6ce0915061093c908490600401610a86565b600060405180830381600087803b15801561095657600080fd5b505af115801561096a573d6000803e3d6000fd5b5050600480546040516222e36760e51b81526001600160a01b03909116935063045c6ce0925061099c91859101610a86565b600060405180830381600087803b1580156109b657600080fd5b505af11580156109ca573d6000803e3d6000fd5b50506005546040516222e36760e51b81526001600160a01b03909116925063045c6ce09150610349908490600401610a86565b6002546001600160a01b031681565b6004546001600160a01b031681565b600060208284031215610a2c578081fd5b8135610a3781610a8f565b9392505050565b600060208284031215610a4f578081fd5b8151610a3781610a8f565b600060208284031215610a6b578081fd5b5035919050565b6001600160a01b0391909116815260200190565b90815260200190565b6001600160a01b0381168114610aa457600080fd5b5056fea2646970667358221220aa5b4f0fd56153b66868d3c16e758c5d8449339fc3e01d059513ad74e2703f3164736f6c63430008000033000000000000000000000000970ccee657dd831e9c37511aa3eb5302c1eb5eee

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

634:1500:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;858:22;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1762:369;;;;;;:::i;:::-;;:::i;:::-;;742:22;;;:::i;713:::-;;;:::i;666:34::-;;;:::i;964:424::-;;;:::i;800:22::-;;;:::i;1396:358::-;;;;;;:::i;:::-;;:::i;771:22::-;;;:::i;829:::-;;;:::i;858:::-;;;-1:-1:-1;;;;;858:22:0;;:::o;1762:369::-;1836:7;;1828:40;;-1:-1:-1;;;1828:40:0;;-1:-1:-1;;;;;1836:7:0;;;;1828:28;;:40;;1857:10;;1828:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1887:7:0;;1879:40;;-1:-1:-1;;;1879:40:0;;-1:-1:-1;;;;;1887:7:0;;;;-1:-1:-1;1879:28:0;;-1:-1:-1;1879:40:0;;1908:10;;1879:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1938:7:0;;1930:40;;-1:-1:-1;;;1930:40:0;;-1:-1:-1;;;;;1938:7:0;;;;-1:-1:-1;1930:28:0;;-1:-1:-1;1930:40:0;;1959:10;;1930:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1989:7:0;;1981:40;;-1:-1:-1;;;1981:40:0;;-1:-1:-1;;;;;1989:7:0;;;;-1:-1:-1;1981:28:0;;-1:-1:-1;1981:40:0;;2010:10;;1981:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2040:7:0;;;2032:40;;-1:-1:-1;;;2032:40:0;;-1:-1:-1;;;;;2040:7:0;;;;-1:-1:-1;2032:28:0;;-1:-1:-1;2032:40:0;;2061:10;;2032:40;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2091:7:0;;2083:40;;-1:-1:-1;;;2083:40:0;;-1:-1:-1;;;;;2091:7:0;;;;-1:-1:-1;2083:28:0;;-1:-1:-1;2083:40:0;;2112:10;;2083:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1762:369;:::o;742:22::-;;;-1:-1:-1;;;;;742:22:0;;:::o;713:::-;;;-1:-1:-1;;;;;713:22:0;;:::o;666:34::-;;;:::o;964:424::-;1007:16;1033:9;-1:-1:-1;;;;;1026:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1007:47;;1091:8;-1:-1:-1;;;;;1077:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1067:7;;:43;;;;;-1:-1:-1;;;;;1067:43:0;;;;;-1:-1:-1;;;;;1067:43:0;;;;;;1145:8;-1:-1:-1;;;;;1131:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1121:7;;:43;;;;;-1:-1:-1;;;;;1121:43:0;;;;;-1:-1:-1;;;;;1121:43:0;;;;;;1199:8;-1:-1:-1;;;;;1185:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1175:7;;:43;;;;;-1:-1:-1;;;;;1175:43:0;;;;;-1:-1:-1;;;;;1175:43:0;;;;;;1253:8;-1:-1:-1;;;;;1239:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1229:7;;:43;;;;;-1:-1:-1;;;;;1229:43:0;;;;;-1:-1:-1;;;;;1229:43:0;;;;;;1307:8;-1:-1:-1;;;;;1293:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1283:7;:43;;-1:-1:-1;;;;;;1283:43:0;-1:-1:-1;;;;;1283:43:0;;;;;;1347:33;;;-1:-1:-1;;;1347:33:0;;;;:31;;;;;;:33;;;;;;;;;;;;;-1:-1:-1;1347:31:0;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1337:7;:43;;-1:-1:-1;;;;;;1337:43:0;-1:-1:-1;;;;;1337:43:0;;;;;;;;;;-1:-1:-1;964:424:0:o;800:22::-;;;-1:-1:-1;;;;;800:22:0;;:::o;1396:358::-;1459:7;;1451:40;;-1:-1:-1;;;1451:40:0;;-1:-1:-1;;;;;1459:7:0;;;;1451:32;;:40;;1484:6;;1451:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1510:7:0;;1502:40;;-1:-1:-1;;;1502:40:0;;-1:-1:-1;;;;;1510:7:0;;;;-1:-1:-1;1502:32:0;;-1:-1:-1;1502:40:0;;1535:6;;1502:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1561:7:0;;1553:40;;-1:-1:-1;;;1553:40:0;;-1:-1:-1;;;;;1561:7:0;;;;-1:-1:-1;1553:32:0;;-1:-1:-1;1553:40:0;;1586:6;;1553:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1612:7:0;;1604:40;;-1:-1:-1;;;1604:40:0;;-1:-1:-1;;;;;1612:7:0;;;;-1:-1:-1;1604:32:0;;-1:-1:-1;1604:40:0;;1637:6;;1604:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1663:7:0;;;1655:40;;-1:-1:-1;;;1655:40:0;;-1:-1:-1;;;;;1663:7:0;;;;-1:-1:-1;1655:32:0;;-1:-1:-1;1655:40:0;;1688:6;;1655:40;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1714:7:0;;1706:40;;-1:-1:-1;;;1706:40:0;;-1:-1:-1;;;;;1714:7:0;;;;-1:-1:-1;1706:32:0;;-1:-1:-1;1706:40:0;;1739:6;;1706:40;;;:::i;771:22::-;;;-1:-1:-1;;;;;771:22:0;;:::o;829:::-;;;-1:-1:-1;;;;;829:22:0;;:::o;14:259:1:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:33;237:5;210:33;:::i;:::-;262:5;84:189;-1:-1:-1;;;84:189:1:o;278:263::-;;401:2;389:9;380:7;376:23;372:32;369:2;;;422:6;414;407:22;369:2;459:9;453:16;478:33;505:5;478:33;:::i;546:190::-;;658:2;646:9;637:7;633:23;629:32;626:2;;;679:6;671;664:22;626:2;-1:-1:-1;707:23:1;;616:120;-1:-1:-1;616:120:1:o;741:203::-;-1:-1:-1;;;;;905:32:1;;;;887:51;;875:2;860:18;;842:102::o;949:177::-;1095:25;;;1083:2;1068:18;;1050:76::o;1131:133::-;-1:-1:-1;;;;;1208:31:1;;1198:42;;1188:2;;1254:1;1251;1244:12;1188:2;1178:86;:::o

Swarm Source

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