Discover more of Apescan's tools and services in one place.
Contract Source Code:
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(); } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.