ETH Price: $1,801.34 (+10.44%)

Contract

0x90CE48ED68C6FCAe6F13b445F1573f003cF1804d

Overview

ETH Balance

Taiko Alethia LogoTaiko Alethia LogoTaiko Alethia Logo0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Boost11021762025-04-23 11:06:111 min ago1745406371IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1
Boost11021762025-04-23 11:06:111 min ago1745406371IN
0x90CE48ED...03cF1804d
0 ETH0.00000380.1000001
Boost11021742025-04-23 11:04:232 mins ago1745406263IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000001
Boost11021702025-04-23 10:59:597 mins ago1745405999IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000001
Boost11021692025-04-23 10:59:118 mins ago1745405951IN
0x90CE48ED...03cF1804d
0 ETH0.000000490.012
Boost11021602025-04-23 10:50:2316 mins ago1745405423IN
0x90CE48ED...03cF1804d
0 ETH0.000000770.01884718
Boost11021582025-04-23 10:48:4718 mins ago1745405327IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000002
Boost11021582025-04-23 10:48:4718 mins ago1745405327IN
0x90CE48ED...03cF1804d
0 ETH0.000004440.10884718
Boost11021532025-04-23 10:44:2322 mins ago1745405063IN
0x90CE48ED...03cF1804d
0 ETH0.00000040.01
Boost11021502025-04-23 10:41:4725 mins ago1745404907IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000001
Boost11021452025-04-23 10:37:3529 mins ago1745404655IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000001
Boost11021352025-04-23 10:27:3539 mins ago1745404055IN
0x90CE48ED...03cF1804d
0 ETH0.000000810.01984718
Boost11021352025-04-23 10:27:3539 mins ago1745404055IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000001
Boost11021232025-04-23 10:16:2350 mins ago1745403383IN
0x90CE48ED...03cF1804d
0 ETH0.000004460.10884718
Boost11021182025-04-23 10:11:4755 mins ago1745403107IN
0x90CE48ED...03cF1804d
0 ETH0.000004460.10884718
Boost11021132025-04-23 10:06:471 hr ago1745402807IN
0x90CE48ED...03cF1804d
0 ETH0.000000460.0114
Boost11021112025-04-23 10:04:591 hr ago1745402699IN
0x90CE48ED...03cF1804d
0 ETH0.000004460.10884718
Boost11021102025-04-23 10:04:111 hr ago1745402651IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1
Boost11021012025-04-23 9:54:471 hr ago1745402087IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000002
Boost11020962025-04-23 9:49:471 hr ago1745401787IN
0x90CE48ED...03cF1804d
0 ETH0.000000810.01977218
Boost11020932025-04-23 9:47:111 hr ago1745401631IN
0x90CE48ED...03cF1804d
0 ETH0.000004090.1000001
Boost11020912025-04-23 9:45:471 hr ago1745401547IN
0x90CE48ED...03cF1804d
0 ETH0.000004460.10884718
Boost11020912025-04-23 9:45:471 hr ago1745401547IN
0x90CE48ED...03cF1804d
0 ETH0.000004460.10884718
Boost11020902025-04-23 9:44:591 hr ago1745401499IN
0x90CE48ED...03cF1804d
0 ETH0.000000380.0095
Boost11020892025-04-23 9:43:591 hr ago1745401439IN
0x90CE48ED...03cF1804d
0 ETH0.000000380.0095
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AstraGameBooster

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
berlin EvmVersion, MIT license
/**
 *Submitted for verification at taikoscan.io on 2024-07-03
*/

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.2 <0.9.0;

contract AstraGameBooster {
    struct BoostData {
        uint256 latestBoostTime;
        uint256 boostCount;
        uint256 consecutiveDays;
    }
    mapping(address => BoostData) private users;

    event GameBoost(address indexed sender, uint256 boostCount, uint256 consecutiveDays, uint256 latestBoostTime);

    // 24 hours (in seconds)
    uint256 private constant BOOST_INTERVAL = 24 * 60 * 60;

    uint256 public participantCount;

    function boost() public returns (uint256 latestBoostTime, uint256 boostCount, uint256 consecutiveDays) {
        address currentUser = msg.sender;
        BoostData storage user = users[currentUser];

        require(
            user.latestBoostTime == 0 || block.timestamp >= user.latestBoostTime + BOOST_INTERVAL,
            "AstraGameBoost available only once every 24 hours."
        );

        if (user.boostCount == 0) {
            participantCount++;
        }

        // Calculate consecutive days
        if (block.timestamp < user.latestBoostTime + 2 * BOOST_INTERVAL) {
            user.consecutiveDays++;
        } else {
            user.consecutiveDays = 1;
        }
        user.latestBoostTime = block.timestamp;
        user.boostCount++;

        emit GameBoost(currentUser, user.boostCount, user.consecutiveDays, block.timestamp);

        return (user.latestBoostTime, user.boostCount, user.consecutiveDays);
    }

    function userGameBoost(
        address userAddress
    ) public view returns (uint256 latestBoostTime, uint256 boostCount, uint256 consecutiveDays) {
        BoostData storage user = users[userAddress];
        return (user.latestBoostTime, user.boostCount, user.consecutiveDays);
    }
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"boostCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"consecutiveDays","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"latestBoostTime","type":"uint256"}],"name":"GameBoost","type":"event"},{"inputs":[],"name":"boost","outputs":[{"internalType":"uint256","name":"latestBoostTime","type":"uint256"},{"internalType":"uint256","name":"boostCount","type":"uint256"},{"internalType":"uint256","name":"consecutiveDays","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"participantCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"userGameBoost","outputs":[{"internalType":"uint256","name":"latestBoostTime","type":"uint256"},{"internalType":"uint256","name":"boostCount","type":"uint256"},{"internalType":"uint256","name":"consecutiveDays","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061059d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063362f04c01461004657806349cd2acb14610064578063a66f42c014610096575b600080fd5b61004e6100b6565b60405161005b91906102f5565b60405180910390f35b61007e60048036038101906100799190610373565b6100bc565b60405161008d939291906103a0565b60405180910390f35b61009e61011f565b6040516100ad939291906103a0565b60405180910390f35b60015481565b6000806000806000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000015481600101548260020154935093509350509193909250565b60008060008033905060008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154148061018f575062015180816000015461018b9190610406565b4210155b6101ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101c5906104bd565b60405180910390fd5b60008160010154036101f357600160008154809291906101ed906104dd565b91905055505b6201518060026102039190610525565b81600001546102129190610406565b4210156102385780600201600081548092919061022e906104dd565b9190505550610243565b600181600201819055505b428160000181905550806001016000815480929190610261906104dd565b91905055508173ffffffffffffffffffffffffffffffffffffffff167ffdf41324b9480de20f4da06d5ea907dab34706e8c091e0afa10816d9280f111382600101548360020154426040516102b8939291906103a0565b60405180910390a28060000154816001015482600201549450945094505050909192565b6000819050919050565b6102ef816102dc565b82525050565b600060208201905061030a60008301846102e6565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061034082610315565b9050919050565b61035081610335565b811461035b57600080fd5b50565b60008135905061036d81610347565b92915050565b60006020828403121561038957610388610310565b5b60006103978482850161035e565b91505092915050565b60006060820190506103b560008301866102e6565b6103c260208301856102e6565b6103cf60408301846102e6565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610411826102dc565b915061041c836102dc565b9250828201905080821115610434576104336103d7565b5b92915050565b600082825260208201905092915050565b7f417374726147616d65426f6f737420617661696c61626c65206f6e6c79206f6e60008201527f636520657665727920323420686f7572732e0000000000000000000000000000602082015250565b60006104a760328361043a565b91506104b28261044b565b604082019050919050565b600060208201905081810360008301526104d68161049a565b9050919050565b60006104e8826102dc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361051a576105196103d7565b5b600182019050919050565b6000610530826102dc565b915061053b836102dc565b9250828202610549816102dc565b915082820484148315176105605761055f6103d7565b5b509291505056fea2646970667358221220e6b8632d6fe321a4402aa3438e3b1106db3f224b7fdbeb655cc234670fb15b1464736f6c63430008180033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063362f04c01461004657806349cd2acb14610064578063a66f42c014610096575b600080fd5b61004e6100b6565b60405161005b91906102f5565b60405180910390f35b61007e60048036038101906100799190610373565b6100bc565b60405161008d939291906103a0565b60405180910390f35b61009e61011f565b6040516100ad939291906103a0565b60405180910390f35b60015481565b6000806000806000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000015481600101548260020154935093509350509193909250565b60008060008033905060008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154148061018f575062015180816000015461018b9190610406565b4210155b6101ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101c5906104bd565b60405180910390fd5b60008160010154036101f357600160008154809291906101ed906104dd565b91905055505b6201518060026102039190610525565b81600001546102129190610406565b4210156102385780600201600081548092919061022e906104dd565b9190505550610243565b600181600201819055505b428160000181905550806001016000815480929190610261906104dd565b91905055508173ffffffffffffffffffffffffffffffffffffffff167ffdf41324b9480de20f4da06d5ea907dab34706e8c091e0afa10816d9280f111382600101548360020154426040516102b8939291906103a0565b60405180910390a28060000154816001015482600201549450945094505050909192565b6000819050919050565b6102ef816102dc565b82525050565b600060208201905061030a60008301846102e6565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061034082610315565b9050919050565b61035081610335565b811461035b57600080fd5b50565b60008135905061036d81610347565b92915050565b60006020828403121561038957610388610310565b5b60006103978482850161035e565b91505092915050565b60006060820190506103b560008301866102e6565b6103c260208301856102e6565b6103cf60408301846102e6565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610411826102dc565b915061041c836102dc565b9250828201905080821115610434576104336103d7565b5b92915050565b600082825260208201905092915050565b7f417374726147616d65426f6f737420617661696c61626c65206f6e6c79206f6e60008201527f636520657665727920323420686f7572732e0000000000000000000000000000602082015250565b60006104a760328361043a565b91506104b28261044b565b604082019050919050565b600060208201905081810360008301526104d68161049a565b9050919050565b60006104e8826102dc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361051a576105196103d7565b5b600182019050919050565b6000610530826102dc565b915061053b836102dc565b9250828202610549816102dc565b915082820484148315176105605761055f6103d7565b5b509291505056fea2646970667358221220e6b8632d6fe321a4402aa3438e3b1106db3f224b7fdbeb655cc234670fb15b1464736f6c63430008180033

Deployed Bytecode Sourcemap

68:1732:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;492:31;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1505:292;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;532:965;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;492:31;;;;:::o;1505:292::-;1586:23;1611:18;1631:23;1667:22;1692:5;:18;1698:11;1692:18;;;;;;;;;;;;;;;1667:43;;1729:4;:20;;;1751:4;:15;;;1768:4;:20;;;1721:68;;;;;;;1505:292;;;;;:::o;532:965::-;565:23;590:18;610:23;646:19;668:10;646:32;;689:22;714:5;:18;720:11;714:18;;;;;;;;;;;;;;;689:43;;791:1;767:4;:20;;;:25;:85;;;;471:12;815:4;:20;;;:37;;;;:::i;:::-;796:15;:56;;767:85;745:185;;;;;;;;;;;;:::i;:::-;;;;;;;;;966:1;947:4;:15;;;:20;943:71;;984:16;;:18;;;;;;;;;:::i;:::-;;;;;;943:71;471:12;1110:1;:18;;;;:::i;:::-;1087:4;:20;;;:41;;;;:::i;:::-;1069:15;:59;1065:171;;;1145:4;:20;;;:22;;;;;;;;;:::i;:::-;;;;;;1065:171;;;1223:1;1200:4;:20;;:24;;;;1065:171;1269:15;1246:4;:20;;:38;;;;1295:4;:15;;;:17;;;;;;;;;:::i;:::-;;;;;;1340:11;1330:78;;;1353:4;:15;;;1370:4;:20;;;1392:15;1330:78;;;;;;;;:::i;:::-;;;;;;;;1429:4;:20;;;1451:4;:15;;;1468:4;:20;;;1421:68;;;;;;;;532:965;;;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:126;806:7;846:42;839:5;835:54;824:65;;769:126;;;:::o;901:96::-;938:7;967:24;985:5;967:24;:::i;:::-;956:35;;901:96;;;:::o;1003:122::-;1076:24;1094:5;1076:24;:::i;:::-;1069:5;1066:35;1056:63;;1115:1;1112;1105:12;1056:63;1003:122;:::o;1131:139::-;1177:5;1215:6;1202:20;1193:29;;1231:33;1258:5;1231:33;:::i;:::-;1131:139;;;;:::o;1276:329::-;1335:6;1384:2;1372:9;1363:7;1359:23;1355:32;1352:119;;;1390:79;;:::i;:::-;1352:119;1510:1;1535:53;1580:7;1571:6;1560:9;1556:22;1535:53;:::i;:::-;1525:63;;1481:117;1276:329;;;;:::o;1611:442::-;1760:4;1798:2;1787:9;1783:18;1775:26;;1811:71;1879:1;1868:9;1864:17;1855:6;1811:71;:::i;:::-;1892:72;1960:2;1949:9;1945:18;1936:6;1892:72;:::i;:::-;1974;2042:2;2031:9;2027:18;2018:6;1974:72;:::i;:::-;1611:442;;;;;;:::o;2059:180::-;2107:77;2104:1;2097:88;2204:4;2201:1;2194:15;2228:4;2225:1;2218:15;2245:191;2285:3;2304:20;2322:1;2304:20;:::i;:::-;2299:25;;2338:20;2356:1;2338:20;:::i;:::-;2333:25;;2381:1;2378;2374:9;2367:16;;2402:3;2399:1;2396:10;2393:36;;;2409:18;;:::i;:::-;2393:36;2245:191;;;;:::o;2442:169::-;2526:11;2560:6;2555:3;2548:19;2600:4;2595:3;2591:14;2576:29;;2442:169;;;;:::o;2617:237::-;2757:34;2753:1;2745:6;2741:14;2734:58;2826:20;2821:2;2813:6;2809:15;2802:45;2617:237;:::o;2860:366::-;3002:3;3023:67;3087:2;3082:3;3023:67;:::i;:::-;3016:74;;3099:93;3188:3;3099:93;:::i;:::-;3217:2;3212:3;3208:12;3201:19;;2860:366;;;:::o;3232:419::-;3398:4;3436:2;3425:9;3421:18;3413:26;;3485:9;3479:4;3475:20;3471:1;3460:9;3456:17;3449:47;3513:131;3639:4;3513:131;:::i;:::-;3505:139;;3232:419;;;:::o;3657:233::-;3696:3;3719:24;3737:5;3719:24;:::i;:::-;3710:33;;3765:66;3758:5;3755:77;3752:103;;3835:18;;:::i;:::-;3752:103;3882:1;3875:5;3871:13;3864:20;;3657:233;;;:::o;3896:410::-;3936:7;3959:20;3977:1;3959:20;:::i;:::-;3954:25;;3993:20;4011:1;3993:20;:::i;:::-;3988:25;;4048:1;4045;4041:9;4070:30;4088:11;4070:30;:::i;:::-;4059:41;;4249:1;4240:7;4236:15;4233:1;4230:22;4210:1;4203:9;4183:83;4160:139;;4279:18;;:::i;:::-;4160:139;3944:362;3896:410;;;;:::o

Swarm Source

ipfs://e6b8632d6fe321a4402aa3438e3b1106db3f224b7fdbeb655cc234670fb15b14

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.