@@ -510,15 +510,16 @@ func getStatus(c *cli.Context) (*api.NodeStatusResponse, error) {
510510 return nil , err
511511 }
512512
513- // Calculate the *real* maximum, including the pending bond reductions
514- trueRplStakeThreshold := eth .EthToWei (32 )
515- trueRplStakeThreshold .Mul (trueRplStakeThreshold , big .NewInt (int64 (totalActiveValidators )))
516- trueRplStakeThreshold .Sub (trueRplStakeThreshold , response .EthBorrowed )
517- trueRplStakeThreshold .Sub (trueRplStakeThreshold , response .PendingBorrowAmount ) // (32 * totalActiveValidators - ethBorrowed - pendingBorrow)
518- trueRplStakeThreshold .Mul (trueRplStakeThreshold , rplStakeThresholdFraction )
519- trueRplStakeThreshold .Div (trueRplStakeThreshold , rplPrice )
520-
521- response .RplStakeThreshold = trueRplStakeThreshold
513+ if ! saturnDeployed {
514+ // Calculate the *real* maximum, including the pending bond reductions
515+ trueRplStakeThreshold := eth .EthToWei (32 )
516+ trueRplStakeThreshold .Mul (trueRplStakeThreshold , big .NewInt (int64 (totalActiveValidators )))
517+ trueRplStakeThreshold .Sub (trueRplStakeThreshold , response .EthBorrowed )
518+ trueRplStakeThreshold .Sub (trueRplStakeThreshold , response .PendingBorrowAmount ) // (32 * totalActiveValidators - ethBorrowed - pendingBorrow)
519+ trueRplStakeThreshold .Mul (trueRplStakeThreshold , rplStakeThresholdFraction )
520+ trueRplStakeThreshold .Div (trueRplStakeThreshold , rplPrice )
521+ response .RplStakeThreshold = trueRplStakeThreshold
522+ }
522523
523524 response .BondedCollateralRatio = eth .WeiToEth (rplPrice ) * eth .WeiToEth (response .TotalRplStake ) / (float64 (totalActiveValidators )* 32.0 - eth .WeiToEth (response .EthBorrowed ) - eth .WeiToEth (response .PendingBorrowAmount ))
524525 response .BorrowedCollateralRatio = eth .WeiToEth (rplPrice ) * eth .WeiToEth (response .TotalRplStake ) / (eth .WeiToEth (response .EthBorrowed ) + eth .WeiToEth (response .PendingBorrowAmount ))
0 commit comments