Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cnative berachain #74

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/four-pandas-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@traderjoe-xyz/sdk-core': patch
---

fix cnative berachain
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 80084:
case 80094:
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 80084', () => {
expect(CNATIVE.onChain(80084).symbol === 'BERA').toBe(true)
it('returns BERA for 80094', () => {
expect(CNATIVE.onChain(80094).symbol === 'BERA').toBe(true)
})
})
})