Skip to content

Commit

Permalink
execute swap e2e (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino authored Apr 3, 2023
1 parent fc413f8 commit e88b4b1
Show file tree
Hide file tree
Showing 25 changed files with 1,770 additions and 823 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
- name: Run e2e (Brave)
uses: nick-fields/retry@v2
with:
timeout_minutes: 8
timeout_minutes: 10
max_attempts: 3
command: |
export BROWSER=chrome
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: Run e2e (Brave)
uses: nick-fields/retry@v2
with:
timeout_minutes: 8
timeout_minutes: 10
max_attempts: 3
command: |
export BROWSER=brave
Expand Down
14 changes: 14 additions & 0 deletions e2e/numbers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import BigNumber from 'bignumber.js';

export type BigNumberish = number | string | BigNumber;

export const convertRawAmountToDecimalFormat = (
value: BigNumberish,
decimals = 18,
): string =>
new BigNumber(value).dividedBy(new BigNumber(10).pow(decimals)).toFixed();

export const subtract = (
numberOne: BigNumberish,
numberTwo: BigNumberish,
): string => new BigNumber(numberOne).minus(new BigNumber(numberTwo)).toFixed();
Loading

0 comments on commit e88b4b1

Please sign in to comment.