Skip to content

Commit

Permalink
refactor: swap business logic improvements (#2199)
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored May 6, 2024
1 parent f36b8ca commit a13b878
Show file tree
Hide file tree
Showing 24 changed files with 889 additions and 368 deletions.
10 changes: 10 additions & 0 deletions packages/common/tests/NumberUtil.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, expect, it } from 'vitest'
import { NumberUtil } from '../src/utils/NumberUtil.js'

// -- Tests --------------------------------------------------------------------
describe('NumberUtil', () => {
it('should return isGreaterThan as expected', () => {
const isGreaterThan = NumberUtil.bigNumber('6.348').isGreaterThan('0')
expect(isGreaterThan).toBe(true)
})
})
1 change: 1 addition & 0 deletions packages/core/src/controllers/RouterController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface RouterControllerState {
email?: string
newEmail?: string
target?: SwapInputTarget
swapUnsupportedChain?: boolean
}
transactionStack: TransactionAction[]
}
Expand Down
Loading

0 comments on commit a13b878

Please sign in to comment.