@@ -400,11 +400,11 @@ func TestGetLendQuantity(t *testing.T) {
400400 common .BasePrice ,
401401 depositRate ,
402402 common .BasePrice ,
403- new (big.Int ).Div (collateralLocked , big . NewInt ( 2 ) ), // 1/2
403+ new (big.Int ).Rsh (collateralLocked , 1 ), // 1/2
404404 lendQuantity ,
405405 lendQuantity ,
406406 },
407- new (big.Int ).Div (lendQuantity , big . NewInt ( 2 ) ),
407+ new (big.Int ).Rsh (lendQuantity , 1 ),
408408 false ,
409409 },
410410 {
@@ -414,7 +414,7 @@ func TestGetLendQuantity(t *testing.T) {
414414 common .BasePrice ,
415415 depositRate ,
416416 common .BasePrice ,
417- new (big.Int ).Div (collateralLocked , big . NewInt ( 2 ) ),
417+ new (big.Int ).Rsh (collateralLocked , 1 ),
418418 common .Big0 ,
419419 lendQuantity ,
420420 },
@@ -429,10 +429,10 @@ func TestGetLendQuantity(t *testing.T) {
429429 depositRate ,
430430 common .BasePrice ,
431431 collateralLocked ,
432- new (big.Int ).Div (lendQuantity , big . NewInt ( 2 ) ),
432+ new (big.Int ).Rsh (lendQuantity , 1 ),
433433 lendQuantity ,
434434 },
435- new (big.Int ).Div (lendQuantity , big . NewInt ( 2 ) ),
435+ new (big.Int ).Rsh (lendQuantity , 1 ),
436436 true ,
437437 },
438438 {
@@ -457,7 +457,7 @@ func TestGetLendQuantity(t *testing.T) {
457457 common .BasePrice ,
458458 depositRate ,
459459 common .BasePrice ,
460- new (big.Int ).Div (collateralLocked , big . NewInt ( 2 ) ),
460+ new (big.Int ).Rsh (collateralLocked , 1 ),
461461 common .Big0 ,
462462 lendQuantity ,
463463 },
@@ -471,11 +471,11 @@ func TestGetLendQuantity(t *testing.T) {
471471 common .BasePrice ,
472472 depositRate ,
473473 common .BasePrice ,
474- new (big.Int ).Div (lendQuantity , big . NewInt ( 2 ) ), // 1/2
474+ new (big.Int ).Rsh (lendQuantity , 1 ), // 1/2
475475 collateralLocked ,
476476 lendQuantity ,
477477 },
478- new (big.Int ).Div (lendQuantity , big . NewInt ( 2 ) ),
478+ new (big.Int ).Rsh (lendQuantity , 1 ),
479479 false ,
480480 },
481481 {
@@ -486,7 +486,7 @@ func TestGetLendQuantity(t *testing.T) {
486486 depositRate ,
487487 common .BasePrice ,
488488 common .Big0 ,
489- new (big.Int ).Div (collateralLocked , big . NewInt ( 2 ) ),
489+ new (big.Int ).Rsh (collateralLocked , 1 ),
490490 lendQuantity ,
491491 },
492492 common .Big0 ,
@@ -514,10 +514,10 @@ func TestGetLendQuantity(t *testing.T) {
514514 depositRate ,
515515 common .BasePrice ,
516516 collateralLocked ,
517- new (big.Int ).Div (collateralLocked , big . NewInt ( 2 ) ),
517+ new (big.Int ).Rsh (collateralLocked , 1 ),
518518 lendQuantity ,
519519 },
520- new (big.Int ).Div (lendQuantity , big . NewInt ( 2 ) ),
520+ new (big.Int ).Rsh (lendQuantity , 1 ),
521521 true ,
522522 },
523523 {
0 commit comments