Skip to content

Commit

Permalink
test: Tick: Call library directly instead of test contract.
Browse files Browse the repository at this point in the history
The test contract was a middle layer between library and was used by
javascript / HardHat tests. Due to the middle layer using Foundry,
gas cost usage was calculated incorrectly.

Generate correct gas snapshots using direct library calls.
Delete unnecessary comments.

Functions moved and internalized from TickTest.sol:

* ticks()
* tickSpacingToMaxLiquidityPerTick()
* setTick(),
* getFeeGrowthInside()
* update()
* clear()

Ref: #315
  • Loading branch information
gitcoindev committed Jul 31, 2023
1 parent 63c0321 commit a37c0c0
Showing 1 changed file with 116 additions and 72 deletions.
Loading

0 comments on commit a37c0c0

Please sign in to comment.