APE Price: $0.73 (-0.17%)

Contract

0x95aCC449d39DCC5177c1d501FBeAD996Cd88336B

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Liquidate25151912024-10-28 15:48:47110 days ago1730130527IN
0x95aCC449...6Cd88336B
0 APE0.0056888125.42069
Liquidate25151842024-10-28 15:48:45110 days ago1730130525IN
0x95aCC449...6Cd88336B
0 APE0.0013225325.42069
Liquidate25129242024-10-28 15:37:28110 days ago1730129848IN
0x95aCC449...6Cd88336B
0 APE0.0056872925.42069
Liquidate25121732024-10-28 15:33:55110 days ago1730129635IN
0x95aCC449...6Cd88336B
0 APE0.0054209125.42069
Liquidate25121562024-10-28 15:33:51110 days ago1730129631IN
0x95aCC449...6Cd88336B
0 APE0.0057817525.42069
Liquidate25118102024-10-28 15:32:15110 days ago1730129535IN
0x95aCC449...6Cd88336B
0 APE0.0056883825.42069
Liquidate25118062024-10-28 15:32:14110 days ago1730129534IN
0x95aCC449...6Cd88336B
0 APE0.0056859925.42069
Liquidate25118032024-10-28 15:32:13110 days ago1730129533IN
0x95aCC449...6Cd88336B
0 APE0.0056901425.42069
Liquidate25117992024-10-28 15:32:12110 days ago1730129532IN
0x95aCC449...6Cd88336B
0 APE0.0056883625.42069
Liquidate25117962024-10-28 15:32:11110 days ago1730129531IN
0x95aCC449...6Cd88336B
0 APE0.0057811425.42069
Liquidate25105692024-10-28 15:23:47110 days ago1730129027IN
0x95aCC449...6Cd88336B
0 APE0.0056861525.42069
Liquidate25105642024-10-28 15:23:46110 days ago1730129026IN
0x95aCC449...6Cd88336B
0 APE0.005780325.42069
Liquidate25104362024-10-28 15:22:49110 days ago1730128969IN
0x95aCC449...6Cd88336B
0 APE0.0054225825.42069
Liquidate25104292024-10-28 15:22:44110 days ago1730128964IN
0x95aCC449...6Cd88336B
0 APE0.0057823625.42069
Liquidate25072732024-10-28 15:01:15110 days ago1730127675IN
0x95aCC449...6Cd88336B
0 APE0.0056874725.42069
Liquidate25072632024-10-28 15:01:13110 days ago1730127673IN
0x95aCC449...6Cd88336B
0 APE0.0057800225.42069
Liquidate25064782024-10-28 14:57:15110 days ago1730127435IN
0x95aCC449...6Cd88336B
0 APE0.0056865325.42069
Liquidate25064742024-10-28 14:57:14110 days ago1730127434IN
0x95aCC449...6Cd88336B
0 APE0.0056872925.42069
Liquidate25064682024-10-28 14:57:12110 days ago1730127432IN
0x95aCC449...6Cd88336B
0 APE0.0056868325.42069
Liquidate25064622024-10-28 14:57:11110 days ago1730127431IN
0x95aCC449...6Cd88336B
0 APE0.0056874725.42069
Liquidate25064572024-10-28 14:57:10110 days ago1730127430IN
0x95aCC449...6Cd88336B
0 APE0.0056875225.42069
Liquidate25064522024-10-28 14:57:08110 days ago1730127428IN
0x95aCC449...6Cd88336B
0 APE0.0056857625.42069
Liquidate25064482024-10-28 14:57:07110 days ago1730127427IN
0x95aCC449...6Cd88336B
0 APE0.0056885925.42069
Liquidate25064432024-10-28 14:57:06110 days ago1730127426IN
0x95aCC449...6Cd88336B
0 APE0.0056881325.42069
Liquidate25064392024-10-28 14:57:04110 days ago1730127424IN
0x95aCC449...6Cd88336B
0 APE0.0056878525.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

0x608080604052600436101561001d575b50361561001b57600080fd5b005b60009081803560e01c9182633ccfd60b14610279575050806353b97dde14610234576354343c550361000f57346102315760603660031901126102315760243567ffffffffffffffff81116101e65761007a9036906004016103a3565b9060443567ffffffffffffffff811161022f5761009b9036906004016103a3565b7f0000000000000000000000004b8d96438303c921bbae9d7cdbe8b62b6916bbab6001600160a01b031692833b1561022b57939085926040519586936354343c5560e01b855280606486016004356004880152606060248801525260848501919086905b8082106101ee57505050600319848203016044850152828152602081019260208160051b83010193838793601e1982360301905b848610610173575050505050505092818381819603925af18015610166576101585780f35b610161916103d9565b388180f35b50604051903d90823e3d90fd5b92959850929590939650601f198282030185528735838112156101ea5784018b60208235920167ffffffffffffffff83116101e65782360381136101e65782845260019360209384938493829085850137838284010152601f80199101160101990195019601928a9795928a9792610133565b5080fd5b8b80fd5b93965093945092919083356001600160a01b038116919082900361022757602081600193829352019401920191889592889594926100ff565b8980fd5b8580fd5b835b80fd5b50346102315780600319360112610231576040517f0000000000000000000000004b8d96438303c921bbae9d7cdbe8b62b6916bbab6001600160a01b03168152602090f35b81903461038d578160031936011261038d57638da5cb5b60e01b81526020816004817f0000000000000000000000004b8d96438303c921bbae9d7cdbe8b62b6916bbab6001600160a01b03165afa80156103985782918291610350575b508190819047906001600160a01b03165af13d1561034b573d67ffffffffffffffff81116103375760405190610316601f8201601f1916602001836103d9565b81528260203d92013e5b156103285780f35b632684a07960e01b8152600490fd5b634e487b7160e01b83526041600452602483fd5b610320565b9150506020813d602011610390575b8161036c602093836103d9565b8101031261038d57516001600160a01b038116810361038d578190816102d6565b50fd5b3d915061035f565b6040513d84823e3d90fd5b9181601f840112156103d45782359167ffffffffffffffff83116103d4576020808501948460051b0101116103d457565b600080fd5b90601f8019910116810190811067ffffffffffffffff8211176103fb57604052565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220b349a90a3b485ce7fa6c32ca25be3c55602421fe2efb7d630016021cf543b4b664736f6c634300081c0033

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.