Skip to content

Commit

Permalink
test: update expected gas headroom values after Hardhat upgrade
Browse files Browse the repository at this point in the history
The Berlin hardfork increased the gas cost of cold state reads (among
other things) which resulted in increased gas cost for list traversal.
  • Loading branch information
danielattilasimon committed Sep 10, 2021
1 parent 777ec90 commit 8bd3434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/lib-ethers/test/Liquity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1374,9 +1374,9 @@ describe("EthersLiquity", () => {
const borrowingRate = await liquity.getFees().then(fees => fees.borrowingRate());

for (const [borrowingFeeDecayToleranceMinutes, roughGasHeadroom] of [
[10, 102000],
[20, 184000],
[30, 241000]
[10, 128000],
[20, 242000],
[30, 322000]
]) {
const tx = await liquity.populate.openTrove(Trove.recreate(bottomTrove, borrowingRate), {
borrowingFeeDecayToleranceMinutes
Expand Down

0 comments on commit 8bd3434

Please sign in to comment.