@@ -69,8 +69,8 @@ describe('e2e-tribe-redeemer', function () {
6969 expect ( amountsOut [ 1 ] ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 25 ) ) ;
7070 expect ( amountsOut [ 2 ] ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 330 ) ) ; // 333.72 FOX
7171 expect ( amountsOut [ 2 ] ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 335 ) ) ;
72- expect ( amountsOut [ 3 ] ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 665 ) ) ; // 670.21 DAI
73- expect ( amountsOut [ 3 ] ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 675 ) ) ;
72+ expect ( amountsOut [ 3 ] ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 700 ) ) ; // 701.525 DAI
73+ expect ( amountsOut [ 3 ] ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 705 ) ) ;
7474 } ) ;
7575
7676 it ( 'redeem() 1,000,000 TRIBE, twice' , async ( ) => {
@@ -119,8 +119,8 @@ describe('e2e-tribe-redeemer', function () {
119119 const daiPerRedeem = daiBalance1 . sub ( daiBalance0 ) ;
120120 expect ( stethPerRedeem ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 109 ) ) ;
121121 expect ( stethPerRedeem ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 112 ) ) ;
122- expect ( daiPerRedeem ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 66500 ) ) ;
123- expect ( daiPerRedeem ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 67500 ) ) ;
122+ expect ( daiPerRedeem ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 70000 ) ) ;
123+ expect ( daiPerRedeem ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 70500 ) ) ;
124124 } ) ;
125125
126126 it ( 'small redeemooor' , async ( ) => {
@@ -147,8 +147,8 @@ describe('e2e-tribe-redeemer', function () {
147147 const daiReceived = daiBalance1 . sub ( daiBalance0 ) ;
148148 expect ( stethReceived ) . to . be . at . least ( '109000000' ) ; // >= 0.000000000109 stETH
149149 expect ( stethReceived ) . to . be . at . most ( '112000000' ) ; // <= 0.000000000112 stETH
150- expect ( daiReceived ) . to . be . at . least ( '66500000000 ' ) ; // >= 0.0000000665 DAI
151- expect ( daiReceived ) . to . be . at . most ( '67500000000 ' ) ; // <>>= 0.0000000675 DAI
150+ expect ( daiReceived ) . to . be . at . least ( '70000000000 ' ) ; // >= 0.0000000700 DAI
151+ expect ( daiReceived ) . to . be . at . most ( '71000000000 ' ) ; // <>>= 0.0.0000000710 DAI
152152 } ) ;
153153
154154 it ( 'dust redeemooor' , async ( ) => {
@@ -174,7 +174,7 @@ describe('e2e-tribe-redeemer', function () {
174174 const stethReceived = stethBalance1 . sub ( stethBalance0 ) ;
175175 const daiReceived = daiBalance1 . sub ( daiBalance0 ) ;
176176 expect ( stethReceived ) . to . be . equal ( '0' ) ; // got rounded down to 0, no revert
177- expect ( daiReceived ) . to . be . equal ( '6 ' ) ; // 6 DAI Wei
177+ expect ( daiReceived ) . to . be . equal ( '7 ' ) ; // 7 DAI Wei
178178 } ) ;
179179
180180 it ( 'last redeemooor' , async ( ) => {
@@ -200,7 +200,7 @@ describe('e2e-tribe-redeemer', function () {
200200 const expectedAmounts = {
201201 redeemedAmount : ethers . constants . WeiPerEther . mul ( 10_000 ) ,
202202 steth : ethers . BigNumber . from ( '1096463758637073656' ) , // 1.0964 stETH
203- dai : ethers . BigNumber . from ( '670212090694599076060 ' ) // 670.212 DAI
203+ dai : ethers . BigNumber . from ( '701525436619890200000 ' ) // 701.525 DAI
204204 } ;
205205 for ( let i = 0 ; i < 10 ; i ++ ) {
206206 const multiplier = Math . floor ( Math . random ( ) * 100 ) + 1 ;
@@ -251,8 +251,8 @@ describe('e2e-tribe-redeemer', function () {
251251 const daiReceived = daiBalance1 . sub ( daiBalance0 ) ;
252252 expect ( stethReceived ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 109 ) . div ( 100 ) ) ; // 1.0964 stETH
253253 expect ( stethReceived ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 112 ) . div ( 100 ) ) ;
254- expect ( daiReceived ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 665 ) ) ; // 670.212 DAI
255- expect ( daiReceived ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 675 ) ) ;
254+ expect ( daiReceived ) . to . be . at . least ( ethers . constants . WeiPerEther . mul ( 700 ) ) ; // 701.525 DAI
255+ expect ( daiReceived ) . to . be . at . most ( ethers . constants . WeiPerEther . mul ( 705 ) ) ;
256256
257257 // balance after all redeems
258258 expect ( await contracts . steth . balanceOf ( contracts . tribeRedeemer . address ) ) . to . be . at . most ( '1' ) ;
0 commit comments