Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetto90 committed Mar 19, 2024
1 parent c947791 commit bb703a3
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions contracts/OverlayV1Market.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,35 +91,53 @@ contract OverlayV1Market is IOverlayV1Market, Pausable {
/// @param debt debt of position at build
/// @param isLong whether is long or short
/// @param price entry price
/// @param oiAfterBuild oi after build
/// @param oiSharesAfterBuild oi shares after build
event Build(
address indexed sender,
uint256 positionId,
uint256 oi,
uint256 debt,
bool isLong,
uint256 price
uint256 price,
uint256 oiAfterBuild,
uint256 oiSharesAfterBuild
);

/// @param sender address that initiated unwind (owns position)
/// @param positionId id of unwound position
/// @param fraction fraction of position unwound
/// @param mint total amount minted (+/-) at unwind
/// @param price exit price
/// @param oiAfterUnwind oi after unwind
/// @param oiSharesAfterUnwind oi shares after unwind
event Unwind(
address indexed sender, uint256 positionId, uint256 fraction, int256 mint, uint256 price
address indexed sender,
uint256 positionId,
uint256 fraction,
int256 mint,
uint256 price,
uint256 oiAfterUnwind,
uint256 oiSharesAfterUnwind
);

/// @param sender address that initiated liquidate
/// @param owner address that owned the liquidated position
/// @param positionId id of the liquidated position
/// @param mint total amount burned (-) at liquidate
/// @param price liquidation price
/// @param oiAfterLiquidate oi after liquidate
/// @param oiSharesAfterLiquidate oi shares after liquidate
event Liquidate(
address indexed sender,
address indexed owner,
uint256 positionId,
int256 mint,
uint256 price
uint256 price,
uint256 oiAfterLiquidate,
uint256 oiSharesAfterLiquidate
);

/// @param sender address that initiated withdraw (owns position)
/// @param positionId id of withdrawn position
/// @param collateral total amount of collateral withdrawn
Expand Down

0 comments on commit bb703a3

Please sign in to comment.