Skip to content

Commit

Permalink
Merge pull request #108 from securesecrets/reward-token-export
Browse files Browse the repository at this point in the history
Reward token export
  • Loading branch information
AustinWoetzel authored Mar 15, 2024
2 parents 6ef79f5 + 031fa8d commit b1e96b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-moles-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shadeprotocol/shadejs": patch
---

export type for reward tokens, update test description
4 changes: 2 additions & 2 deletions src/lib/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test('Generates random padding of length 8-15', () => {
expect(generatePadding()).toBe('AAAAAAAA');
});

test('It converts token from U denom V2', () => {
test('It converts token from U denom', () => {
expect(convertCoinFromUDenom(1000, 2)).toStrictEqual(BigNumber(10));
expect(convertCoinFromUDenom('1000', 2)).toStrictEqual(BigNumber(10));
expect(convertCoinFromUDenom('1000000000000000000000000000', 2)).toStrictEqual(BigNumber('10000000000000000000000000'));
Expand All @@ -52,7 +52,7 @@ test('It converts token from U denom V2', () => {
expect(convertCoinFromUDenom(BigNumber('987654321987654321987654321'), 18)).toStrictEqual(BigNumber('987654321.987654321987654321'));
});

test('It converts token to U denom V2', () => {
test('It converts token to U denom', () => {
const testBigNumber1 = BigNumber(1000);
expect(convertCoinToUDenom(testBigNumber1, 2)).toBe('100000');
const testBigNumber2 = BigNumber('0.123456789123456789');
Expand Down
1 change: 1 addition & 0 deletions src/types/contracts/swap/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,5 @@ export type {
Path,
Paths,
ParsedSwapResponse,
RewardTokenInfo,
};

0 comments on commit b1e96b8

Please sign in to comment.