Skip to content

Commit

Permalink
fix berachain artio id (#70)
Browse files Browse the repository at this point in the history
* fix berachain artio id

* changeset
  • Loading branch information
Max-3-7 authored Jan 29, 2025
1 parent 0c2b742 commit cdcf75e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-pumas-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@traderjoe-xyz/sdk-core': patch
---

fix berachain artio id
2 changes: 1 addition & 1 deletion packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export enum ChainId {
BNB_TESTNET = 97,
ETHEREUM = 1,
MANTLE = 5000,
BERACHAIN_ARTIO = 80085
BERACHAIN_ARTIO = 80084
}

export enum TradeType {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/entities/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class CNATIVE extends NativeCurrency {
symbol = 'MNT'
name = 'Mantle'
break
case 80085:
case 80084:
symbol = 'BERA'
name = 'Berachain'
break
Expand Down
4 changes: 2 additions & 2 deletions packages/core/test/currency.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ describe('NativeCurrency', () => {
it('returns MNT for 5000', () => {
expect(CNATIVE.onChain(5000).symbol === 'MNT').toBe(true)
})
it('returns BERA for 80085', () => {
expect(CNATIVE.onChain(80085).symbol === 'BERA').toBe(true)
it('returns BERA for 80084', () => {
expect(CNATIVE.onChain(80084).symbol === 'BERA').toBe(true)
})
})
})

0 comments on commit cdcf75e

Please sign in to comment.