fix error after merge

This commit is contained in:
ssallam 2021-02-09 11:00:38 +01:00
parent 56cf086d20
commit c051c05d75
1 changed files with 2 additions and 2 deletions

View File

@ -328,10 +328,10 @@ export function createPoolTransaction(
const spotPrice = pool.spotPrice >= ZERO_BD ? pool.spotPrice : ZERO_BD
pool.valueLocked = poolTx.oceanReserve + (poolTx.datatokenReserve * spotPrice)
let factory = PoolFactory.load('1')
if (valueLocked < ZERO_BD || pool.valueLocked < ZERO_BD) {
if (oldValueLocked < ZERO_BD || pool.valueLocked < ZERO_BD) {
log.warning(
'EEEEEEEEEEEEEEEEE valueLocked < Zero: pool={}, oldVL={}, newVL={}, OCEAN={}, DT={}, spotPrice={}',
[pool.id, valueLocked.toString(), pool.valueLocked.toString(),
[pool.id, oldValueLocked.toString(), pool.valueLocked.toString(),
poolTx.oceanReserve.toString(), poolTx.datatokenReserve.toString(),
pool.spotPrice.toString()])
}