@@ -634,25 +634,25 @@ contract("LPoolDelegator", async accounts => {
634634
635635 accountSnapshot = await erc20Pool . getAccountSnapshot ( accounts [ 0 ] ) ;
636636 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 ) ;
639639 assert . equal ( toETH ( await erc20Pool . supplyRatePerBlock ( ) ) , 0 ) ;
640640 assert . equal ( ( await erc20Pool . exchangeRateStored ( ) ) . toString ( ) , 1e18 ) ;
641- approxPrecisionAssertPrint ( "reserves" , '334855403136000000' , reserves . toString ( ) , 8 ) ;
641+ approxPrecisionAssertPrint ( "reserves" , '334855403136000000' , reserves . toString ( ) , 7 ) ;
642642
643643 //reduce reserves
644644 await erc20Pool . reduceReserves ( accounts [ 1 ] , '34855403136000000' ) ;
645645 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 ) ;
648648 assert . equal ( toETH ( await erc20Pool . supplyRatePerBlock ( ) ) , 0 ) ;
649649 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 ) ;
652652 // add reserves
653653 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 ) ;
656656
657657 } )
658658
0 commit comments