Events

ITO V1 contract events

Supply

event Supply(uint256 _positionId);

This event is emitted upon any new positions created into the contract. This event can be used to build out a backend which tracks each position within the contract.

Remove

event Remove(
    uint256 _positionId, 
    uint256 _downsideTokenAmount, 
    uint256 _upsideTokenAmount);

This event is emitted upon any position has removed any upside or downside tokens.

Take

event Take(
    uint256 _positionId, 
    uint256 _downsideTokenAmount, 
    uint256 _upsideTokenAmount, 
    address _taker);

This event is emitted when a user has taken (partially or fully) a position.

Untake

event Untake(
    uint256 _positionId, 
    uint256 _downsideTokenAmount, 
    uint256 _upsideTokenAmount, 
    address _taker);

This event is emitted when a user has returned tokens (partially or fully) previously taken from a position.

ProtocolFeeClaimed

event ProtocolFeeClaimed(
    address _tokenAddress, 
    uint256 _tokenAmount);

This event is emitted when protocol fees have been claimed.

LPFeeClaimed

event LPFeeClaimed(
    address _recipient, 
    address _tokenAddress, 
    uint256 _tokenAmount);

This event is emitted when supply fees have been claimed.

ProtocolFeeSet

This event is emitted when the protocol fee's percentage value has been updated.

Last updated