APE Price: $1.15 (+4.32%)

Contract

0x22D73153b0AA5b0E69f18EDFB314dD9b9ebF0850

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Liquidate41804552024-11-12 22:23:088 days ago1731450188IN
0x22D73153...b9ebF0850
0 APE0.0057076825.42069
Liquidate41804542024-11-12 22:23:068 days ago1731450186IN
0x22D73153...b9ebF0850
0 APE0.0057063825.42069
Liquidate41804532024-11-12 22:23:068 days ago1731450186IN
0x22D73153...b9ebF0850
0 APE0.0009985225.42069
Liquidate41804522024-11-12 22:23:058 days ago1731450185IN
0x22D73153...b9ebF0850
0 APE0.0057069925.42069
Liquidate41804512024-11-12 22:23:058 days ago1731450185IN
0x22D73153...b9ebF0850
0 APE0.0009984925.42069
Liquidate41804502024-11-12 22:23:058 days ago1731450185IN
0x22D73153...b9ebF0850
0 APE0.0009984925.42069
Liquidate41804492024-11-12 22:23:048 days ago1731450184IN
0x22D73153...b9ebF0850
0 APE0.0057972325.42069
Liquidate41803882024-11-12 22:21:538 days ago1731450113IN
0x22D73153...b9ebF0850
0 APE0.0057071425.42069
Liquidate41803862024-11-12 22:21:528 days ago1731450112IN
0x22D73153...b9ebF0850
0 APE0.0057952825.42069
Liquidate36232762024-11-05 22:53:0815 days ago1730847188IN
0x22D73153...b9ebF0850
0 APE0.0056898825.42069
Liquidate36232742024-11-05 22:53:0715 days ago1730847187IN
0x22D73153...b9ebF0850
0 APE0.0009984925.42069
Liquidate36232712024-11-05 22:53:0615 days ago1730847186IN
0x22D73153...b9ebF0850
0 APE0.0056896525.42069
Liquidate36232702024-11-05 22:53:0515 days ago1730847185IN
0x22D73153...b9ebF0850
0 APE0.0056879825.42069
Liquidate36232692024-11-05 22:53:0515 days ago1730847185IN
0x22D73153...b9ebF0850
0 APE0.0056870625.42069
Liquidate36232682024-11-05 22:53:0415 days ago1730847184IN
0x22D73153...b9ebF0850
0 APE0.0009985225.42069
Liquidate36232672024-11-05 22:53:0315 days ago1730847183IN
0x22D73153...b9ebF0850
0 APE0.0057782225.42069
Liquidate36213162024-11-05 22:19:1515 days ago1730845155IN
0x22D73153...b9ebF0850
0 APE0.0009985225.42069
Liquidate36213152024-11-05 22:19:1315 days ago1730845153IN
0x22D73153...b9ebF0850
0 APE0.0056892225.42069
Liquidate36213132024-11-05 22:19:1315 days ago1730845153IN
0x22D73153...b9ebF0850
0 APE0.0057770825.42069
Liquidate36207422024-11-05 22:08:1815 days ago1730844498IN
0x22D73153...b9ebF0850
0 APE0.0056885425.42069
Liquidate36207412024-11-05 22:08:1715 days ago1730844497IN
0x22D73153...b9ebF0850
0 APE0.0009984925.42069
Liquidate36207382024-11-05 22:08:1715 days ago1730844497IN
0x22D73153...b9ebF0850
0 APE0.0056912625.42069
Liquidate36207362024-11-05 22:08:1615 days ago1730844496IN
0x22D73153...b9ebF0850
0 APE0.0056895825.42069
Liquidate36207352024-11-05 22:08:1515 days ago1730844495IN
0x22D73153...b9ebF0850
0 APE0.0057789825.42069
Liquidate36194962024-11-05 21:41:3315 days ago1730842893IN
0x22D73153...b9ebF0850
0 APE0.0056903425.42069
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xDAcb7d09...b77aB63DD
The constructor portion of the code might be different and could alter the actual behaviour of the contract

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"}]

Deployed Bytecode

0x608080604052600436101561001d575b50361561001b57600080fd5b005b60009081803560e01c9182633ccfd60b14610279575050806353b97dde14610234576354343c550361000f57346102315760603660031901126102315760243567ffffffffffffffff81116101e65761007a9036906004016103a3565b9060443567ffffffffffffffff811161022f5761009b9036906004016103a3565b7f000000000000000000000000a2be94efc9d323b2613f91ebcc09af6551a894796001600160a01b031692833b1561022b57939085926040519586936354343c5560e01b855280606486016004356004880152606060248801525260848501919086905b8082106101ee57505050600319848203016044850152828152602081019260208160051b83010193838793601e1982360301905b848610610173575050505050505092818381819603925af18015610166576101585780f35b610161916103d9565b388180f35b50604051903d90823e3d90fd5b92959850929590939650601f198282030185528735838112156101ea5784018b60208235920167ffffffffffffffff83116101e65782360381136101e65782845260019360209384938493829085850137838284010152601f80199101160101990195019601928a9795928a9792610133565b5080fd5b8b80fd5b93965093945092919083356001600160a01b038116919082900361022757602081600193829352019401920191889592889594926100ff565b8980fd5b8580fd5b835b80fd5b50346102315780600319360112610231576040517f000000000000000000000000a2be94efc9d323b2613f91ebcc09af6551a894796001600160a01b03168152602090f35b81903461038d578160031936011261038d57638da5cb5b60e01b81526020816004817f000000000000000000000000a2be94efc9d323b2613f91ebcc09af6551a894796001600160a01b03165afa80156103985782918291610350575b508190819047906001600160a01b03165af13d1561034b573d67ffffffffffffffff81116103375760405190610316601f8201601f1916602001836103d9565b81528260203d92013e5b156103285780f35b632684a07960e01b8152600490fd5b634e487b7160e01b83526041600452602483fd5b610320565b9150506020813d602011610390575b8161036c602093836103d9565b8101031261038d57516001600160a01b038116810361038d578190816102d6565b50fd5b3d915061035f565b6040513d84823e3d90fd5b9181601f840112156103d45782359167ffffffffffffffff83116103d4576020808501948460051b0101116103d457565b600080fd5b90601f8019910116810190811067ffffffffffffffff8211176103fb57604052565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220b349a90a3b485ce7fa6c32ca25be3c55602421fe2efb7d630016021cf543b4b664736f6c634300081c0033

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.