Skip to content

Commit

Permalink
Build/ipair interface view (#9)
Browse files Browse the repository at this point in the history
* build(ipair): TWAPObeservationHistory view

* build: TWAPObservationHistory to ipair
  • Loading branch information
pegahcarter authored Mar 26, 2024
1 parent ce1bd9a commit 9744c75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dev-fraxswap",
"version": "2.0.1",
"version": "2.0.2",
"description": "",
"directories": {
"lib": "lib",
Expand Down
2 changes: 2 additions & 0 deletions src/contracts/core/interfaces/IFraxswapPair.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ interface IFraxswapPair is IUniswapV2Pair {
uint256 price1CumulativeLast;
}

function TWAPObservationHistory(uint256 index) external view returns (TWAPObservation memory);

event LongTermSwap0To1(address indexed addr, uint256 orderId, uint256 amount0In, uint256 numberOfTimeIntervals);
event LongTermSwap1To0(address indexed addr, uint256 orderId, uint256 amount1In, uint256 numberOfTimeIntervals);
event CancelLongTermOrder(
Expand Down

0 comments on commit 9744c75

Please sign in to comment.