Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
fix: fix tests
  • Loading branch information
kev1n-peters committed Oct 10, 2025
commit e71932c783ff9bb8c87e981eed4e503f833a5b52
11 changes: 6 additions & 5 deletions src/utils/fees.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('calculateFeeOffset', () => {
key: 'Ethereum:0xa0b86a33e6776a1e5e0b3a6f6a1b6d6f7e7c7e8e',
chain: 'Ethereum',
address: '0xa0b86a33e6776a1e5e0b3a6f6a1b6d6f7e7c7e8e',
addressString: '0xa0b86a33e6776a1e5e0b3a6f6a1b6d6f7e7c7e8e',
symbol: 'USDC',
name: 'USD Coin',
decimals: 6,
Expand Down Expand Up @@ -236,10 +237,10 @@ describe('calculateFeeOffset', () => {
config: {
referrerFee: {
feeDbps: 50n,
},
tokens: {
[mockToken.key]: {
referrerFeeDbps: 20n, // Token-specific override
perTokenOverrides: {
[mockToken.addressString]: {
referrerFeeDbps: 20n, // Token-specific override
},
},
},
},
Expand Down Expand Up @@ -292,7 +293,7 @@ describe('calculateFeeOffset', () => {
referrerFee: {
referrerFeeDbps: 100n,
tokenFeeOverrides: {
[mockToken.key]: {
[mockToken.addressString]: {
referrerFeeDbps: 30n, // Token-specific override
},
},
Expand Down
Loading