mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
Updating tests to check if everything still works with basetoken of 6 decimals
This commit is contained in:
parent
0db13e04e9
commit
4374e98ef2
@ -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(
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user