Skip to content

Events

Event Parameters Emitted On
SharesPurchased assets, sharesAcquired, executionPrice buyNoShares() execution
SharesSold shares, usdcReceived, executionPrice sellNoShares() execution
SettlementClaimed usdcReturned, settlementPrice claimSettlement() execution

Detail

SharesPurchased

event SharesPurchased(
    uint256 assets,          // USDC spent
    uint256 sharesAcquired,  // NO shares received from venue (1e18 precision)
    uint256 executionPrice   // Weighted average fill price in 1e18 fixed-point
                             // This value is assigned to position.entryPrice
);

The executionPrice in this event is the authoritative record of the entry price. It must match position.entryPrice recorded by the vault — verifiable on-chain.

SharesSold

event SharesSold(
    uint256 shares,          // NO shares sold
    uint256 usdcReceived,    // USDC returned to vault
    uint256 executionPrice   // Effective execution price in 1e18 fixed-point
);

Only emitted during emergency liquidation. Compare executionPrice to the pre-trade currentPrice() to compute realized slippage.

SettlementClaimed

event SettlementClaimed(
    uint256 usdcReturned,    // USDC transferred to vault
    uint256 settlementPrice  // Final resolution price (1e18; 1e18 for NO win = $1.00)
);