Contract 0x71c45bF7Fc6D6439c454a46B5172c93bF612cb28

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x924349debbb86a4c9388b35f5e2a5169d86537b130b097c3228cfa400fc53a71Add AD364320172022-04-19 6:22:24229 days 18 hrs ago0x0661ee3542cfffbbefca7f83cfad2e9d006d61a2 IN  0x71c45bf7fc6d6439c454a46b5172c93bf612cb280.1 FTM0.016686699492
0x66e3b90ca8274ca90b8364da97fb541b53577472cf7ee44a1d6d65fc3b536d830x60806040364188802022-04-19 2:50:46229 days 21 hrs ago0x0661ee3542cfffbbefca7f83cfad2e9d006d61a2 IN  Create: AdContract0 FTM0.15784092324
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x924349debbb86a4c9388b35f5e2a5169d86537b130b097c3228cfa400fc53a71364320172022-04-19 6:22:24229 days 18 hrs ago 0x71c45bf7fc6d6439c454a46b5172c93bf612cb280x0661ee3542cfffbbefca7f83cfad2e9d006d61a20.099 FTM
0x66e3b90ca8274ca90b8364da97fb541b53577472cf7ee44a1d6d65fc3b536d83364188802022-04-19 2:50:46229 days 21 hrs ago 0x0661ee3542cfffbbefca7f83cfad2e9d006d61a2  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AdContract

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Unlicense license
/**
 *Submitted for verification at FtmScan.com on 2022-04-19
*/

pragma solidity 0.8.13;

contract AdContract {
    mapping(address => uint) public adLABEL;
    mapping(address => uint) public adLINK;
    mapping(address => uint) public adVALUE;
    mapping(address => uint) public adSTAMP;
    bool internal locked;

    function addAD(address toADD, uint adLABELv, uint adLINKv) external payable {
        require(!locked, "No re-entrancy");
        locked = true;
        require(msg.value >= tx.gasprice);
        uint ctr;
        //2678400 seconds = 31 days, 2592000 = 30 days, 2505600 = 29 days, 86400 = 1 day
        if (block.timestamp < (adSTAMP[toADD] + 2592000)) {
        	ctr = (adVALUE[toADD] * (2678400 - (block.timestamp - adSTAMP[toADD]))) / 86400;
        	} else {
        	ctr = (adVALUE[toADD] * 86400) / ((block.timestamp - adSTAMP[toADD]) - 2505600);
        }
        require(msg.value > ctr);
        require(block.timestamp > (adSTAMP[toADD] + 86400)); //lock, 86400 seconds = 1 day
        adVALUE[toADD] = msg.value;
        adLINK[toADD] = adLINKv;
        adLABEL[toADD] = adLABELv;
        adSTAMP[toADD] = block.timestamp;
        (bool sent, ) = toADD.call{value: (msg.value - (msg.value / 100))}("");
        require(sent, "Failed to send Ether");
        locked = false;
    }

    function operTAKE(uint operTAKEv) public {
        require(msg.sender == 0x0661eE3542CfffBBEFCA7F83cfaD2E9D006d61a2);
        (bool sent, ) = msg.sender.call{value: operTAKEv}("");
        require(sent, "Failed to send Ether");
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"adLABEL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"adLINK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"adSTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"adVALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toADD","type":"address"},{"internalType":"uint256","name":"adLABELv","type":"uint256"},{"internalType":"uint256","name":"adLINKv","type":"uint256"}],"name":"addAD","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"operTAKEv","type":"uint256"}],"name":"operTAKE","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50610bcb806100206000396000f3fe6080604052600436106100555760003560e01c80631ca61c291461005a5780633cd6263e1461009757806346d7f08e146100c057806347a5751a146100fd578063b003ff5214610119578063d3a9903f14610156575b600080fd5b34801561006657600080fd5b50610081600480360381019061007c91906107e6565b610193565b60405161008e919061082c565b60405180910390f35b3480156100a357600080fd5b506100be60048036038101906100b99190610873565b6101ab565b005b3480156100cc57600080fd5b506100e760048036038101906100e291906107e6565b6102a7565b6040516100f4919061082c565b60405180910390f35b610117600480360381019061011291906108a0565b6102bf565b005b34801561012557600080fd5b50610140600480360381019061013b91906107e6565b610753565b60405161014d919061082c565b60405180910390f35b34801561016257600080fd5b5061017d600480360381019061017891906107e6565b61076b565b60405161018a919061082c565b60405180910390f35b60026020528060005260406000206000915090505481565b730661ee3542cfffbbefca7f83cfad2e9d006d61a273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101f757600080fd5b60003373ffffffffffffffffffffffffffffffffffffffff168260405161021d90610924565b60006040518083038185875af1925050503d806000811461025a576040519150601f19603f3d011682016040523d82523d6000602084013e61025f565b606091505b50509050806102a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029a90610996565b60405180910390fd5b5050565b60016020528060005260406000206000915090505481565b600460009054906101000a900460ff161561030f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030690610a02565b60405180910390fd5b6001600460006101000a81548160ff0219169083151502179055503a34101561033757600080fd5b600062278d00600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103879190610a51565b4210156104465762015180600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426103dd9190610aa7565b6228de806103eb9190610aa7565b600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104359190610adb565b61043f9190610b64565b90506104fa565b62263b80600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426104959190610aa7565b61049f9190610aa7565b62015180600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104ed9190610adb565b6104f79190610b64565b90505b80341161050657600080fd5b62015180600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105549190610a51565b421161055f57600080fd5b34600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555042600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060008473ffffffffffffffffffffffffffffffffffffffff166064346106949190610b64565b3461069f9190610aa7565b6040516106ab90610924565b60006040518083038185875af1925050503d80600081146106e8576040519150601f19603f3d011682016040523d82523d6000602084013e6106ed565b606091505b5050905080610731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072890610996565b60405180910390fd5b6000600460006101000a81548160ff0219169083151502179055505050505050565b60036020528060005260406000206000915090505481565b60006020528060005260406000206000915090505481565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006107b382610788565b9050919050565b6107c3816107a8565b81146107ce57600080fd5b50565b6000813590506107e0816107ba565b92915050565b6000602082840312156107fc576107fb610783565b5b600061080a848285016107d1565b91505092915050565b6000819050919050565b61082681610813565b82525050565b6000602082019050610841600083018461081d565b92915050565b61085081610813565b811461085b57600080fd5b50565b60008135905061086d81610847565b92915050565b60006020828403121561088957610888610783565b5b60006108978482850161085e565b91505092915050565b6000806000606084860312156108b9576108b8610783565b5b60006108c7868287016107d1565b93505060206108d88682870161085e565b92505060406108e98682870161085e565b9150509250925092565b600081905092915050565b50565b600061090e6000836108f3565b9150610919826108fe565b600082019050919050565b600061092f82610901565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000610980601483610939565b915061098b8261094a565b602082019050919050565b600060208201905081810360008301526109af81610973565b9050919050565b7f4e6f2072652d656e7472616e6379000000000000000000000000000000000000600082015250565b60006109ec600e83610939565b91506109f7826109b6565b602082019050919050565b60006020820190508181036000830152610a1b816109df565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610a5c82610813565b9150610a6783610813565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610a9c57610a9b610a22565b5b828201905092915050565b6000610ab282610813565b9150610abd83610813565b925082821015610ad057610acf610a22565b5b828203905092915050565b6000610ae682610813565b9150610af183610813565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610b2a57610b29610a22565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610b6f82610813565b9150610b7a83610813565b925082610b8a57610b89610b35565b5b82820490509291505056fea26469706673582212201f83f6f9e91809fcfc01f17418f9badf0c11a1085a102a466badc5705b8774ca64736f6c634300080d0033

Deployed ByteCode Sourcemap

27:1499:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;145:39;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1284:237;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;100:38;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;266:1010;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;191:39;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;54;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;145;;;;;;;;;;;;;;;;;:::o;1284:237::-;1358:42;1344:56;;:10;:56;;;1336:65;;;;;;1413:9;1428:10;:15;;1451:9;1428:37;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1412:53;;;1484:4;1476:37;;;;;;;;;;;;:::i;:::-;;;;;;;;;1325:196;1284:237;:::o;100:38::-;;;;;;;;;;;;;;;;;:::o;266:1010::-;362:6;;;;;;;;;;;361:7;353:34;;;;;;;;;;;;:::i;:::-;;;;;;;;;407:4;398:6;;:13;;;;;;;;;;;;;;;;;;443:11;430:9;:24;;422:33;;;;;;466:8;615:7;598;:14;606:5;598:14;;;;;;;;;;;;;;;;:24;;;;:::i;:::-;579:15;:44;575:263;;;711:5;691:7;:14;699:5;691:14;;;;;;;;;;;;;;;;673:15;:32;;;;:::i;:::-;662:7;:44;;;;:::i;:::-;644:7;:14;652:5;644:14;;;;;;;;;;;;;;;;:63;;;;:::i;:::-;643:73;;;;:::i;:::-;637:79;;575:263;;;818:7;800;:14;808:5;800:14;;;;;;;;;;;;;;;;782:15;:32;;;;:::i;:::-;781:44;;;;:::i;:::-;771:5;754:7;:14;762:5;754:14;;;;;;;;;;;;;;;;:22;;;;:::i;:::-;753:73;;;;:::i;:::-;747:79;;575:263;868:3;856:9;:15;848:24;;;;;;927:5;910:7;:14;918:5;910:14;;;;;;;;;;;;;;;;:22;;;;:::i;:::-;891:15;:42;883:51;;;;;;992:9;975:7;:14;983:5;975:14;;;;;;;;;;;;;;;:26;;;;1028:7;1012:6;:13;1019:5;1012:13;;;;;;;;;;;;;;;:23;;;;1063:8;1046:7;:14;1054:5;1046:14;;;;;;;;;;;;;;;:25;;;;1099:15;1082:7;:14;1090:5;1082:14;;;;;;;;;;;;;;;:32;;;;1126:9;1141:5;:10;;1185:3;1173:9;:15;;;;:::i;:::-;1160:9;:29;;;;:::i;:::-;1141:54;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1125:70;;;1214:4;1206:37;;;;;;;;;;;;:::i;:::-;;;;;;;;;1263:5;1254:6;;:14;;;;;;;;;;;;;;;;;;342:934;;266:1010;;;:::o;191:39::-;;;;;;;;;;;;;;;;;:::o;54:::-;;;;;;;;;;;;;;;;;:::o;88:117:1:-;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;;:::i;:::-;917:119;1075:1;1100:53;1145:7;1136:6;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;1046:117;841:329;;;;:::o;1176:77::-;1213:7;1242:5;1231:16;;1176:77;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:222::-;1476:4;1514:2;1503:9;1499:18;1491:26;;1527:71;1595:1;1584:9;1580:17;1571:6;1527:71;:::i;:::-;1383:222;;;;:::o;1611:122::-;1684:24;1702:5;1684:24;:::i;:::-;1677:5;1674:35;1664:63;;1723:1;1720;1713:12;1664:63;1611:122;:::o;1739:139::-;1785:5;1823:6;1810:20;1801:29;;1839:33;1866:5;1839:33;:::i;:::-;1739:139;;;;:::o;1884:329::-;1943:6;1992:2;1980:9;1971:7;1967:23;1963:32;1960:119;;;1998:79;;:::i;:::-;1960:119;2118:1;2143:53;2188:7;2179:6;2168:9;2164:22;2143:53;:::i;:::-;2133:63;;2089:117;1884:329;;;;:::o;2219:619::-;2296:6;2304;2312;2361:2;2349:9;2340:7;2336:23;2332:32;2329:119;;;2367:79;;:::i;:::-;2329:119;2487:1;2512:53;2557:7;2548:6;2537:9;2533:22;2512:53;:::i;:::-;2502:63;;2458:117;2614:2;2640:53;2685:7;2676:6;2665:9;2661:22;2640:53;:::i;:::-;2630:63;;2585:118;2742:2;2768:53;2813:7;2804:6;2793:9;2789:22;2768:53;:::i;:::-;2758:63;;2713:118;2219:619;;;;;:::o;2844:147::-;2945:11;2982:3;2967:18;;2844:147;;;;:::o;2997:114::-;;:::o;3117:398::-;3276:3;3297:83;3378:1;3373:3;3297:83;:::i;:::-;3290:90;;3389:93;3478:3;3389:93;:::i;:::-;3507:1;3502:3;3498:11;3491:18;;3117:398;;;:::o;3521:379::-;3705:3;3727:147;3870:3;3727:147;:::i;:::-;3720:154;;3891:3;3884:10;;3521:379;;;:::o;3906:169::-;3990:11;4024:6;4019:3;4012:19;4064:4;4059:3;4055:14;4040:29;;3906:169;;;;:::o;4081:170::-;4221:22;4217:1;4209:6;4205:14;4198:46;4081:170;:::o;4257:366::-;4399:3;4420:67;4484:2;4479:3;4420:67;:::i;:::-;4413:74;;4496:93;4585:3;4496:93;:::i;:::-;4614:2;4609:3;4605:12;4598:19;;4257:366;;;:::o;4629:419::-;4795:4;4833:2;4822:9;4818:18;4810:26;;4882:9;4876:4;4872:20;4868:1;4857:9;4853:17;4846:47;4910:131;5036:4;4910:131;:::i;:::-;4902:139;;4629:419;;;:::o;5054:164::-;5194:16;5190:1;5182:6;5178:14;5171:40;5054:164;:::o;5224:366::-;5366:3;5387:67;5451:2;5446:3;5387:67;:::i;:::-;5380:74;;5463:93;5552:3;5463:93;:::i;:::-;5581:2;5576:3;5572:12;5565:19;;5224:366;;;:::o;5596:419::-;5762:4;5800:2;5789:9;5785:18;5777:26;;5849:9;5843:4;5839:20;5835:1;5824:9;5820:17;5813:47;5877:131;6003:4;5877:131;:::i;:::-;5869:139;;5596:419;;;:::o;6021:180::-;6069:77;6066:1;6059:88;6166:4;6163:1;6156:15;6190:4;6187:1;6180:15;6207:305;6247:3;6266:20;6284:1;6266:20;:::i;:::-;6261:25;;6300:20;6318:1;6300:20;:::i;:::-;6295:25;;6454:1;6386:66;6382:74;6379:1;6376:81;6373:107;;;6460:18;;:::i;:::-;6373:107;6504:1;6501;6497:9;6490:16;;6207:305;;;;:::o;6518:191::-;6558:4;6578:20;6596:1;6578:20;:::i;:::-;6573:25;;6612:20;6630:1;6612:20;:::i;:::-;6607:25;;6651:1;6648;6645:8;6642:34;;;6656:18;;:::i;:::-;6642:34;6701:1;6698;6694:9;6686:17;;6518:191;;;;:::o;6715:348::-;6755:7;6778:20;6796:1;6778:20;:::i;:::-;6773:25;;6812:20;6830:1;6812:20;:::i;:::-;6807:25;;7000:1;6932:66;6928:74;6925:1;6922:81;6917:1;6910:9;6903:17;6899:105;6896:131;;;7007:18;;:::i;:::-;6896:131;7055:1;7052;7048:9;7037:20;;6715:348;;;;:::o;7069:180::-;7117:77;7114:1;7107:88;7214:4;7211:1;7204:15;7238:4;7235:1;7228:15;7255:185;7295:1;7312:20;7330:1;7312:20;:::i;:::-;7307:25;;7346:20;7364:1;7346:20;:::i;:::-;7341:25;;7385:1;7375:35;;7390:18;;:::i;:::-;7375:35;7432:1;7429;7425:9;7420:14;;7255:185;;;;:::o

Swarm Source

ipfs://1f83f6f9e91809fcfc01f17418f9badf0c11a1085a102a466badc5705b8774ca
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.