Updating tests to check if everything still works with basetoken of 6 decimals

This commit is contained in:
Jamie Hewitt 2023-05-04 12:35:08 +01:00
parent 0db13e04e9
commit 4374e98ef2
2 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ export function handleSwap(event: Swapped): void {
) )
const dataToken = getToken( const dataToken = getToken(
Address.fromString(fixedRateExchange.datatoken), Address.fromString(fixedRateExchange.datatoken),
false true
) )
swap.baseTokenAmount = weiToDecimal( swap.baseTokenAmount = weiToDecimal(

View File

@ -103,7 +103,7 @@ describe('Fixed Rate Exchange tests', async () => {
baseTokenAddress, baseTokenAddress,
owner: publisher, owner: publisher,
marketFeeCollector: marketPlaceFeeAddress, marketFeeCollector: marketPlaceFeeAddress,
baseTokenDecimals: 18, baseTokenDecimals: 6,
datatokenDecimals: 18, datatokenDecimals: 18,
fixedRate: price, fixedRate: price,
marketFee: publishMarketSwapFee, marketFee: publishMarketSwapFee,
@ -236,7 +236,7 @@ describe('Fixed Rate Exchange tests', async () => {
assert(dt.id === datatokenAddress, 'incorrect value for: id') assert(dt.id === datatokenAddress, 'incorrect value for: id')
assert(dt.symbol, 'incorrect value for: symbol') assert(dt.symbol, 'incorrect value for: symbol')
assert(dt.name, 'incorrect value for: name') assert(dt.name, 'incorrect value for: name')
assert(dt.decimals === 18, 'incorrect value for: decimals') assert(dt.decimals === 6, 'incorrect value for: decimals')
assert(dt.address === datatokenAddress, 'incorrect value for: address') assert(dt.address === datatokenAddress, 'incorrect value for: address')
assert(dt.cap === cap, 'incorrect value for: cap') assert(dt.cap === cap, 'incorrect value for: cap')
assert(dt.supply === '0', 'incorrect value for: supply') assert(dt.supply === '0', 'incorrect value for: supply')