Skip to content

Commit

Permalink
fix DUSD not defined at setGov.splits.token.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Apr 10, 2024
1 parent 582ebb6 commit d9beb8a
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ describe('SetGov v0/oracles/splits', () => {
}, {
token: 'TSLA',
currency: 'USD'
}, {
token: 'DUSD',
currency: 'USD'
}],
{ weightage: 1 })
await testing.generate(1)
Expand All @@ -48,6 +51,9 @@ describe('SetGov v0/oracles/splits', () => {
}, {
tokenAmount: '0.99999999@TSLA',
currency: 'USD'
}, {
tokenAmount: '0.99999999@DUSD',
currency: 'USD'
}]
})
await testing.generate(1)
Expand All @@ -66,6 +72,13 @@ describe('SetGov v0/oracles/splits', () => {
})
await testing.generate(1)

await testing.rpc.loan.setLoanToken({
symbol: 'DUSD',
fixedIntervalPriceId: 'DUSD/USD',
interest: new BigNumber(1)
})
await testing.generate(1)

const tslaInfo = await testing.rpc.token.getToken('TSLA')
tslaID = Object.keys(tslaInfo)[0]
}
Expand Down

0 comments on commit d9beb8a

Please sign in to comment.