Skip to content

Commit 7fd0d1d

Browse files
feat: fixed tests
1 parent a80dc70 commit 7fd0d1d

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

packages/contract-helpers/src/v3-UiPoolDataProvider-contract/uiPoolDataProvider.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ describe('UiPoolDataProvider', () => {
147147
expect(result).toEqual({
148148
reservesData: [
149149
{
150+
originalId: 0,
150151
id: '137-0x3e0437898a5667a4769b1ca5a34aab1ae7e81377-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
151152
underlyingAsset: '0x3e0437898a5667a4769b1ca5a34aab1ae7e81377',
152153
name: '',
@@ -194,6 +195,7 @@ describe('UiPoolDataProvider', () => {
194195
virtualUnderlyingBalance: '0',
195196
},
196197
{
198+
originalId: 1,
197199
id: '137-0xa478c2975ab1ea89e8196811f51a7b7ade33eb11-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
198200
underlyingAsset: '0xa478c2975ab1ea89e8196811f51a7b7ade33eb11',
199201
name: '',

packages/contract-helpers/src/v3-UiPoolDataProvider-legacy-contract/legacyUiPoolDataProvider.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ describe('UiPoolDataProvider', () => {
137137
expect(result).toEqual({
138138
reservesData: [
139139
{
140+
originalId: 0,
140141
id: '137-0x3e0437898a5667a4769b1ca5a34aab1ae7e81377-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
141142
underlyingAsset: '0x3e0437898a5667a4769b1ca5a34aab1ae7e81377',
142143
name: '',
@@ -200,6 +201,7 @@ describe('UiPoolDataProvider', () => {
200201
virtualUnderlyingBalance: '0',
201202
},
202203
{
204+
originalId: 1,
203205
id: '137-0xa478c2975ab1ea89e8196811f51a7b7ade33eb11-0x88757f2f99175387ab4c6a4b3067c77a695b0349',
204206
underlyingAsset: '0xa478c2975ab1ea89e8196811f51a7b7ade33eb11',
205207
name: '',

packages/math-utils/src/formatters/emode/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { normalize, valueToBigNumber } from 'math-utils/src/bignumber';
2-
import { LTV_PRECISION } from 'math-utils/src/constants';
1+
import { normalize, valueToBigNumber } from '../../bignumber';
2+
import { LTV_PRECISION } from '../../constants';
33

44
interface EModeCategoryData {
55
ltv: string;

packages/math-utils/src/mocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class ReserveMock {
1616
constructor(config: { decimals: number } = { decimals: 18 }) {
1717
this.config = config;
1818
this.reserve = {
19+
originalId: 0,
1920
id: '0x0',
2021
symbol: 'TEST',
2122
name: 'TEST',

0 commit comments

Comments
 (0)