fix weight (#468)

This commit is contained in:
mihaisc 2022-06-24 05:42:51 -07:00 committed by GitHub
parent 603a25f26a
commit 09e79380c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@ export function handleSetup(event: LOG_SETUP): void {
pool.baseToken = token.id pool.baseToken = token.id
pool.baseTokenWeight = weiToDecimal( pool.baseTokenWeight = weiToDecimal(
event.params.baseTokenWeight.toBigDecimal(), event.params.baseTokenWeight.toBigDecimal(),
token.decimals 18
) )
// decimals hardcoded because datatokens have 18 decimals // decimals hardcoded because datatokens have 18 decimals