-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
75 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// fallback gas limits per 1 withdraw request | ||
export const WITHDRAWAL_QUEUE_REQUEST_STETH_PERMIT_GAS_LIMIT_DEFAULT = | ||
BigInt(255350); | ||
export const WITHDRAWAL_QUEUE_REQUEST_STETH_PERMIT_GAS_LIMIT_DEFAULT = 255_350n; | ||
export const WITHDRAWAL_QUEUE_REQUEST_WSTETH_PERMIT_GAS_LIMIT_DEFAULT = | ||
BigInt(312626); | ||
312_626n; | ||
|
||
export const WITHDRAWAL_QUEUE_REQUEST_STETH_APPROVED_GAS_LIMIT_DEFAULT = | ||
BigInt(228163); | ||
228_163n; | ||
export const WITHDRAWAL_QUEUE_REQUEST_WSTETH_APPROVED_GAS_LIMIT_DEFAULT = | ||
BigInt(280096); | ||
280_096n; | ||
|
||
export const WITHDRAWAL_QUEUE_CLAIM_GAS_LIMIT_DEFAULT = BigInt(89818); | ||
export const WITHDRAWAL_QUEUE_CLAIM_GAS_LIMIT_DEFAULT = 89_818n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export const WSTETH_APPROVE_GAS_LIMIT = BigInt(78000); | ||
export const STETH_L2_APPROVE_GAS_LIMIT = BigInt(52500); | ||
export const WSTETH_APPROVE_GAS_LIMIT = 78_000n; | ||
export const STETH_L2_APPROVE_GAS_LIMIT = 52_500n; | ||
|
||
export const WRAP_FROM_ETH_GAS_LIMIT = BigInt(100000); | ||
export const WRAP_GAS_LIMIT = BigInt(140000); | ||
export const WRAP_L2_GAS_LIMIT = BigInt(95500); | ||
export const WRAP_FROM_ETH_GAS_LIMIT = 100_000n; | ||
export const WRAP_GAS_LIMIT = 140_000n; | ||
export const WRAP_L2_GAS_LIMIT = 95_500n; | ||
|
||
export const UNWRAP_GAS_LIMIT = BigInt(115000); | ||
export const UNWRAP_L2_GAS_LIMIT = BigInt(77500); | ||
export const UNWRAP_GAS_LIMIT = 115_000n; | ||
export const UNWRAP_L2_GAS_LIMIT = 77_500n; | ||
|
||
export const WEI_PER_ETHER = BigInt(10 ** 18); | ||
export const WEI_PER_ETHER = 10_000_000_000_000_000_000n; // 10n ** 18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const applyRoundUpGasLimit = (number: bigint): bigint => | ||
// 94567 -> 94 -> 94000 -> 94999 | ||
(number / BigInt(1000)) * BigInt(1000) + BigInt(999); | ||
(number / 1_000n) * 1_000n + 999n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.