@@ -634,25 +634,25 @@ contract("LPoolDelegator", async accounts => {
634
634
635
635
accountSnapshot = await erc20Pool . getAccountSnapshot ( accounts [ 0 ] ) ;
636
636
assert . equal ( accountSnapshot [ 0 ] , 0 ) ;
637
- approxPrecisionAssertPrint ( "balanceOf" , '9999665144596864000000' , ( await testToken . balanceOf ( accounts [ 0 ] ) ) . toString ( ) , 8 ) ;
638
- approxPrecisionAssertPrint ( "Check borrow rate" , '1585489599' , await erc20Pool . borrowRatePerBlock ( ) , 8 ) ;
637
+ approxPrecisionAssertPrint ( "balanceOf" , '9999665144596864000000' , ( await testToken . balanceOf ( accounts [ 0 ] ) ) . toString ( ) , 7 ) ;
638
+ approxPrecisionAssertPrint ( "Check borrow rate" , '1585489599' , await erc20Pool . borrowRatePerBlock ( ) , 7 ) ;
639
639
assert . equal ( toETH ( await erc20Pool . supplyRatePerBlock ( ) ) , 0 ) ;
640
640
assert . equal ( ( await erc20Pool . exchangeRateStored ( ) ) . toString ( ) , 1e18 ) ;
641
- approxPrecisionAssertPrint ( "reserves" , '334855403136000000' , reserves . toString ( ) , 8 ) ;
641
+ approxPrecisionAssertPrint ( "reserves" , '334855403136000000' , reserves . toString ( ) , 7 ) ;
642
642
643
643
//reduce reserves
644
644
await erc20Pool . reduceReserves ( accounts [ 1 ] , '34855403136000000' ) ;
645
645
let reservesAfterReduce = await erc20Pool . totalReserves ( ) ;
646
- approxPrecisionAssertPrint ( "reservesAfterReduce" , '300000000000000000' , reservesAfterReduce . toString ( ) , 8 ) ;
647
- approxPrecisionAssertPrint ( "Check borrow rate" , '1585489599' , ( await erc20Pool . borrowRatePerBlock ( ) ) . toString ( ) , 8 ) ;
646
+ approxPrecisionAssertPrint ( "reservesAfterReduce" , '300000000000000000' , reservesAfterReduce . toString ( ) , 7 ) ;
647
+ approxPrecisionAssertPrint ( "Check borrow rate" , '1585489599' , ( await erc20Pool . borrowRatePerBlock ( ) ) . toString ( ) , 7 ) ;
648
648
assert . equal ( toETH ( await erc20Pool . supplyRatePerBlock ( ) ) , 0 ) ;
649
649
assert . equal ( ( await erc20Pool . exchangeRateStored ( ) ) . toString ( ) , 1e18 ) ;
650
- approxPrecisionAssertPrint ( "balanceOf" , '34855403136000000' , ( await testToken . balanceOf ( accounts [ 1 ] ) ) . toString ( ) , 8 ) ;
651
- approxPrecisionAssertPrint ( "cash" , '300000000000000000' , ( await erc20Pool . getCash ( ) ) . toString ( ) , 8 ) ;
650
+ approxPrecisionAssertPrint ( "balanceOf" , '34855403136000000' , ( await testToken . balanceOf ( accounts [ 1 ] ) ) . toString ( ) , 7 ) ;
651
+ approxPrecisionAssertPrint ( "cash" , '300000000000000000' , ( await erc20Pool . getCash ( ) ) . toString ( ) , 7 ) ;
652
652
// add reserves
653
653
await erc20Pool . addReserves ( '100000000000000000' ) ;
654
- approxPrecisionAssertPrint ( "totalReserves" , '400000000000000000' , ( await erc20Pool . totalReserves ( ) ) . toString ( ) , 8 ) ;
655
- approxPrecisionAssertPrint ( "cash" , '400000000000000000' , ( await erc20Pool . getCash ( ) ) . toString ( ) , 8 ) ;
654
+ approxPrecisionAssertPrint ( "totalReserves" , '400000000000000000' , ( await erc20Pool . totalReserves ( ) ) . toString ( ) , 7 ) ;
655
+ approxPrecisionAssertPrint ( "cash" , '400000000000000000' , ( await erc20Pool . getCash ( ) ) . toString ( ) , 7 ) ;
656
656
657
657
} )
658
658
0 commit comments