IPoolEvents

Git Source

Events

UpdateTick

event UpdateTick(
    UD60x18 indexed tick,
    UD60x18 indexed prev,
    UD60x18 indexed next,
    SD59x18 delta,
    UD60x18 externalFeeRate,
    SD59x18 longDelta,
    SD59x18 shortDelta,
    uint256 counter
);

Deposit

event Deposit(
    address indexed owner,
    uint256 indexed tokenId,
    UD60x18 contractSize,
    UD60x18 collateral,
    UD60x18 longs,
    UD60x18 shorts,
    SD59x18 lastFeeRate,
    UD60x18 claimableFees,
    UD60x18 marketPrice,
    UD60x18 liquidityRate,
    UD60x18 currentTick
);

Withdrawal

event Withdrawal(
    address indexed owner,
    uint256 indexed tokenId,
    UD60x18 contractSize,
    UD60x18 collateral,
    UD60x18 longs,
    UD60x18 shorts,
    SD59x18 lastFeeRate,
    UD60x18 claimableFees,
    UD60x18 marketPrice,
    UD60x18 liquidityRate,
    UD60x18 currentTick
);

ClaimFees

event ClaimFees(address indexed owner, uint256 indexed tokenId, UD60x18 feesClaimed, SD59x18 lastFeeRate);

ClaimProtocolFees

event ClaimProtocolFees(address indexed feeReceiver, UD60x18 feesClaimed);

FillQuoteOB

event FillQuoteOB(
    bytes32 indexed quoteOBHash,
    address indexed user,
    address indexed provider,
    UD60x18 contractSize,
    Position.Delta deltaMaker,
    Position.Delta deltaTaker,
    UD60x18 premium,
    UD60x18 protocolFee,
    UD60x18 totalReferralRebate,
    bool isBuy
);

WriteFrom

event WriteFrom(
    address indexed underwriter,
    address indexed longReceiver,
    address indexed taker,
    UD60x18 contractSize,
    UD60x18 collateral,
    UD60x18 protocolFee
);

Trade

event Trade(
    address indexed user,
    UD60x18 contractSize,
    Position.Delta delta,
    UD60x18 premium,
    UD60x18 takerFee,
    UD60x18 protocolFee,
    UD60x18 marketPrice,
    UD60x18 liquidityRate,
    UD60x18 currentTick,
    UD60x18 totalReferralRebate,
    bool isBuy
);

Exercise

event Exercise(
    address indexed operator,
    address indexed holder,
    UD60x18 contractSize,
    UD60x18 exerciseValue,
    UD60x18 settlementPrice,
    UD60x18 fee,
    UD60x18 operatorCost
);

Settle

event Settle(
    address indexed operator,
    address indexed holder,
    UD60x18 contractSize,
    UD60x18 exerciseValue,
    UD60x18 settlementPrice,
    UD60x18 fee,
    UD60x18 operatorCost
);

Annihilate

event Annihilate(address indexed owner, UD60x18 contractSize, uint256 fee);

SettlePosition

event SettlePosition(
    address indexed operator,
    address indexed owner,
    uint256 indexed tokenId,
    UD60x18 contractSize,
    UD60x18 collateral,
    UD60x18 exerciseValue,
    UD60x18 feesClaimed,
    UD60x18 settlementPrice,
    UD60x18 fee,
    UD60x18 operatorCost
);

TransferPosition

event TransferPosition(
    address indexed owner, address indexed receiver, uint256 srcTokenId, uint256 destTokenId, UD60x18 contractSize
);

CancelQuoteOB

event CancelQuoteOB(address indexed provider, bytes32 quoteOBHash);

FlashLoan

event FlashLoan(address indexed initiator, address indexed receiver, UD60x18 amount, UD60x18 fee);

SettlementPriceCached

event SettlementPriceCached(UD60x18 settlementPrice);