Skip to content

Commit

Permalink
feat: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaquinBattilana committed Oct 14, 2024
1 parent a80dc70 commit 7fd0d1d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ describe('UiPoolDataProvider', () => {
expect(result).toEqual({
reservesData: [
{
originalId: 0,
id: '137-0x3e0437898a5667a4769b1ca5a34aab1ae7e81377-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
underlyingAsset: '0x3e0437898a5667a4769b1ca5a34aab1ae7e81377',
name: '',
Expand Down Expand Up @@ -194,6 +195,7 @@ describe('UiPoolDataProvider', () => {
virtualUnderlyingBalance: '0',
},
{
originalId: 1,
id: '137-0xa478c2975ab1ea89e8196811f51a7b7ade33eb11-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
underlyingAsset: '0xa478c2975ab1ea89e8196811f51a7b7ade33eb11',
name: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ describe('UiPoolDataProvider', () => {
expect(result).toEqual({
reservesData: [
{
originalId: 0,
id: '137-0x3e0437898a5667a4769b1ca5a34aab1ae7e81377-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
underlyingAsset: '0x3e0437898a5667a4769b1ca5a34aab1ae7e81377',
name: '',
Expand Down Expand Up @@ -200,6 +201,7 @@ describe('UiPoolDataProvider', () => {
virtualUnderlyingBalance: '0',
},
{
originalId: 1,
id: '137-0xa478c2975ab1ea89e8196811f51a7b7ade33eb11-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
underlyingAsset: '0xa478c2975ab1ea89e8196811f51a7b7ade33eb11',
name: '',
Expand Down
4 changes: 2 additions & 2 deletions packages/math-utils/src/formatters/emode/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { normalize, valueToBigNumber } from 'math-utils/src/bignumber';
import { LTV_PRECISION } from 'math-utils/src/constants';
import { normalize, valueToBigNumber } from '../../bignumber';
import { LTV_PRECISION } from '../../constants';

interface EModeCategoryData {
ltv: string;
Expand Down
1 change: 1 addition & 0 deletions packages/math-utils/src/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class ReserveMock {
constructor(config: { decimals: number } = { decimals: 18 }) {
this.config = config;
this.reserve = {
originalId: 0,
id: '0x0',
symbol: 'TEST',
name: 'TEST',
Expand Down

0 comments on commit 7fd0d1d

Please sign in to comment.