APE Price: $1.14 (+4.30%)

Contract

0xDAcb7d098e4FA2E42093a26a40F3003b77aB63DD

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Liquidate48774672024-11-21 12:14:162 mins ago1732191256IN
0xDAcb7d09...b77aB63DD
0 APE0.0009984925.42069
Liquidate48774652024-11-21 12:14:152 mins ago1732191255IN
0xDAcb7d09...b77aB63DD
0 APE0.0057055425.42069
Liquidate48774632024-11-21 12:14:142 mins ago1732191254IN
0xDAcb7d09...b77aB63DD
0 APE0.0057954825.42069
Liquidate48773392024-11-21 12:12:463 mins ago1732191166IN
0xDAcb7d09...b77aB63DD
0 APE0.0057053125.42069
Liquidate48773352024-11-21 12:12:453 mins ago1732191165IN
0xDAcb7d09...b77aB63DD
0 APE0.0057073725.42069
Liquidate48773342024-11-21 12:12:443 mins ago1732191164IN
0xDAcb7d09...b77aB63DD
0 APE0.0057041225.42069
Liquidate48773302024-11-21 12:12:433 mins ago1732191163IN
0xDAcb7d09...b77aB63DD
0 APE0.0057956325.42069
Liquidate48769542024-11-21 12:07:278 mins ago1732190847IN
0xDAcb7d09...b77aB63DD
0 APE0.0057085425.42069
Liquidate48769522024-11-21 12:07:268 mins ago1732190846IN
0xDAcb7d09...b77aB63DD
0 APE0.0059273425.42069
Liquidate48768602024-11-21 12:06:1710 mins ago1732190777IN
0xDAcb7d09...b77aB63DD
0 APE0.0057955625.42069
Liquidate48768052024-11-21 12:05:3710 mins ago1732190737IN
0xDAcb7d09...b77aB63DD
0 APE0.0057955625.42069
Liquidate48767552024-11-21 12:05:0411 mins ago1732190704IN
0xDAcb7d09...b77aB63DD
0 APE0.0009984925.42069
Liquidate48767502024-11-21 12:05:0111 mins ago1732190701IN
0xDAcb7d09...b77aB63DD
0 APE0.0057951825.42069
Liquidate48766012024-11-21 12:03:1413 mins ago1732190594IN
0xDAcb7d09...b77aB63DD
0 APE0.0057066925.42069
Liquidate48766002024-11-21 12:03:1313 mins ago1732190593IN
0xDAcb7d09...b77aB63DD
0 APE0.0057939525.42069
Liquidate48765002024-11-21 12:02:0114 mins ago1732190521IN
0xDAcb7d09...b77aB63DD
0 APE0.0057958625.42069
Liquidate48763992024-11-21 12:00:4315 mins ago1732190443IN
0xDAcb7d09...b77aB63DD
0 APE0.0057062325.42069
Liquidate48763962024-11-21 12:00:4215 mins ago1732190442IN
0xDAcb7d09...b77aB63DD
0 APE0.0057040925.42069
Liquidate48763942024-11-21 12:00:4115 mins ago1732190441IN
0xDAcb7d09...b77aB63DD
0 APE0.0057061825.42069
Liquidate48763932024-11-21 12:00:4015 mins ago1732190440IN
0xDAcb7d09...b77aB63DD
0 APE0.0057964725.42069
Liquidate48763512024-11-21 12:00:1516 mins ago1732190415IN
0xDAcb7d09...b77aB63DD
0 APE0.0057953325.42069
Liquidate48763332024-11-21 11:59:5716 mins ago1732190397IN
0xDAcb7d09...b77aB63DD
0 APE0.0057067125.42069
Liquidate48763312024-11-21 11:59:5616 mins ago1732190396IN
0xDAcb7d09...b77aB63DD
0 APE0.0057069425.42069
Liquidate48763302024-11-21 11:59:5516 mins ago1732190395IN
0xDAcb7d09...b77aB63DD
0 APE0.00570925.42069
Liquidate48763272024-11-21 11:59:5416 mins ago1732190394IN
0xDAcb7d09...b77aB63DD
0 APE0.0057048625.42069
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Liquidator

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 1 : Liquidator.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.28;

interface ITopTrader {
    function liquidate(uint256 tournamentId, address[] calldata users, bytes[] calldata priceUpdate) external;
    function owner() external view returns (address);
}

contract Liquidator {
    error FailedToWithdraw();

    ITopTrader public immutable TOP_TRADER;

    constructor(address _topTrader) {
        TOP_TRADER = ITopTrader(_topTrader);
    }

    receive() external payable {}

    function liquidate(uint256 tournamentId, address[] calldata users, bytes[] calldata priceUpdate) external {
        TOP_TRADER.liquidate(tournamentId, users, priceUpdate);
    }

    function withdraw() external {
        (bool success,) = payable(TOP_TRADER.owner()).call{value: address(this).balance}("");
        if (!success) revert FailedToWithdraw();
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "solady/=lib/solady/src/",
    "pyth/=lib/pyth-sdk-solidity/",
    "NFTMIrror/=lib/NFTMIrror/src/",
    "pyth-sdk-solidity/=lib/pyth-sdk-solidity/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_topTrader","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FailedToWithdraw","type":"error"},{"inputs":[],"name":"TOP_TRADER","outputs":[{"internalType":"contract ITopTrader","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tournamentId","type":"uint256"},{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"bytes[]","name":"priceUpdate","type":"bytes[]"}],"name":"liquidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a034607557601f6104d838819003918201601f19168301916001600160401b03831184841017607a57808492602094604052833981010312607557516001600160a01b0381169081900360755760805260405161044790816100918239608051818181609d0152818161024a015261029d0152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608080604052600436101561001d575b50361561001b57600080fd5b005b60009081803560e01c9182633ccfd60b14610279575050806353b97dde14610234576354343c550361000f57346102315760603660031901126102315760243567ffffffffffffffff81116101e65761007a9036906004016103a3565b9060443567ffffffffffffffff811161022f5761009b9036906004016103a3565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692833b1561022b57939085926040519586936354343c5560e01b855280606486016004356004880152606060248801525260848501919086905b8082106101ee57505050600319848203016044850152828152602081019260208160051b83010193838793601e1982360301905b848610610173575050505050505092818381819603925af18015610166576101585780f35b610161916103d9565b388180f35b50604051903d90823e3d90fd5b92959850929590939650601f198282030185528735838112156101ea5784018b60208235920167ffffffffffffffff83116101e65782360381136101e65782845260019360209384938493829085850137838284010152601f80199101160101990195019601928a9795928a9792610133565b5080fd5b8b80fd5b93965093945092919083356001600160a01b038116919082900361022757602081600193829352019401920191889592889594926100ff565b8980fd5b8580fd5b835b80fd5b50346102315780600319360112610231576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b81903461038d578160031936011261038d57638da5cb5b60e01b81526020816004817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa80156103985782918291610350575b508190819047906001600160a01b03165af13d1561034b573d67ffffffffffffffff81116103375760405190610316601f8201601f1916602001836103d9565b81528260203d92013e5b156103285780f35b632684a07960e01b8152600490fd5b634e487b7160e01b83526041600452602483fd5b610320565b9150506020813d602011610390575b8161036c602093836103d9565b8101031261038d57516001600160a01b038116810361038d578190816102d6565b50fd5b3d915061035f565b6040513d84823e3d90fd5b9181601f840112156103d45782359167ffffffffffffffff83116103d4576020808501948460051b0101116103d457565b600080fd5b90601f8019910116810190811067ffffffffffffffff8211176103fb57604052565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220b349a90a3b485ce7fa6c32ca25be3c55602421fe2efb7d630016021cf543b4b664736f6c634300081c003300000000000000000000000055e0007700c92c095078000b0000b1000000804e

Deployed Bytecode

0x608080604052600436101561001d575b50361561001b57600080fd5b005b60009081803560e01c9182633ccfd60b14610279575050806353b97dde14610234576354343c550361000f57346102315760603660031901126102315760243567ffffffffffffffff81116101e65761007a9036906004016103a3565b9060443567ffffffffffffffff811161022f5761009b9036906004016103a3565b7f00000000000000000000000055e0007700c92c095078000b0000b1000000804e6001600160a01b031692833b1561022b57939085926040519586936354343c5560e01b855280606486016004356004880152606060248801525260848501919086905b8082106101ee57505050600319848203016044850152828152602081019260208160051b83010193838793601e1982360301905b848610610173575050505050505092818381819603925af18015610166576101585780f35b610161916103d9565b388180f35b50604051903d90823e3d90fd5b92959850929590939650601f198282030185528735838112156101ea5784018b60208235920167ffffffffffffffff83116101e65782360381136101e65782845260019360209384938493829085850137838284010152601f80199101160101990195019601928a9795928a9792610133565b5080fd5b8b80fd5b93965093945092919083356001600160a01b038116919082900361022757602081600193829352019401920191889592889594926100ff565b8980fd5b8580fd5b835b80fd5b50346102315780600319360112610231576040517f00000000000000000000000055e0007700c92c095078000b0000b1000000804e6001600160a01b03168152602090f35b81903461038d578160031936011261038d57638da5cb5b60e01b81526020816004817f00000000000000000000000055e0007700c92c095078000b0000b1000000804e6001600160a01b03165afa80156103985782918291610350575b508190819047906001600160a01b03165af13d1561034b573d67ffffffffffffffff81116103375760405190610316601f8201601f1916602001836103d9565b81528260203d92013e5b156103285780f35b632684a07960e01b8152600490fd5b634e487b7160e01b83526041600452602483fd5b610320565b9150506020813d602011610390575b8161036c602093836103d9565b8101031261038d57516001600160a01b038116810361038d578190816102d6565b50fd5b3d915061035f565b6040513d84823e3d90fd5b9181601f840112156103d45782359167ffffffffffffffff83116103d4576020808501948460051b0101116103d457565b600080fd5b90601f8019910116810190811067ffffffffffffffff8211176103fb57604052565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220b349a90a3b485ce7fa6c32ca25be3c55602421fe2efb7d630016021cf543b4b664736f6c634300081c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000055e0007700c92c095078000b0000b1000000804e

-----Decoded View---------------
Arg [0] : _topTrader (address): 0x55E0007700c92c095078000b0000B1000000804E

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000055e0007700c92c095078000b0000b1000000804e


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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.