@@ -76,9 +76,9 @@ func NewNetworkDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts) (
7676
7777 // Local vars for things that need to be converted
7878 var rewardIndex * big.Int
79- var intervalStart * big. Int
80- var intervalDuration * big. Int
81- var scrubPeriodSeconds * big. Int
79+ var intervalStart * bigTime
80+ var intervalDuration * bigDuration
81+ var scrubPeriodSeconds * bigDuration
8282 var totalQueueCapacity * big.Int
8383 var effectiveQueueCapacity * big.Int
8484 var totalQueueLength * big.Int
@@ -90,9 +90,9 @@ func NewNetworkDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts) (
9090 var balancesBlock * big.Int
9191 var balancesSubmissionFrequency * big.Int
9292 var minipoolLaunchTimeout * big.Int
93- var promotionScrubPeriodSeconds * big. Int
94- var windowStartRaw * big. Int
95- var windowLengthRaw * big. Int
93+ var promotionScrubPeriodSeconds * bigDuration
94+ var windowStartRaw * bigDuration
95+ var windowLengthRaw * bigDuration
9696
9797 // Multicall getters
9898 contracts .Multicaller .AddCall (contracts .RocketNetworkPrices , & details .RplPrice , "getRPLPrice" )
@@ -143,9 +143,9 @@ func NewNetworkDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts) (
143143
144144 // Conversion for raw parameters
145145 details .RewardIndex = rewardIndex .Uint64 ()
146- details .IntervalStart = convertToTime ( intervalStart )
147- details .IntervalDuration = convertToDuration ( intervalDuration )
148- details .ScrubPeriod = convertToDuration ( scrubPeriodSeconds )
146+ details .IntervalStart = intervalStart . toTime ( )
147+ details .IntervalDuration = intervalDuration . toDuration ( )
148+ details .ScrubPeriod = scrubPeriodSeconds . toDuration ( )
149149 details .SmoothingPoolAddress = * contracts .RocketSmoothingPool .Address
150150 details .QueueCapacity = minipool.QueueCapacity {
151151 Total : totalQueueCapacity ,
@@ -161,9 +161,9 @@ func NewNetworkDetails(rp *rocketpool.RocketPool, contracts *NetworkContracts) (
161161 details .NodeFee = eth .WeiToEth (nodeFee )
162162 details .BalancesBlock = balancesBlock .Uint64 ()
163163 details .MinipoolLaunchTimeout = minipoolLaunchTimeout
164- details .PromotionScrubPeriod = convertToDuration ( promotionScrubPeriodSeconds )
165- details .BondReductionWindowStart = convertToDuration ( windowStartRaw )
166- details .BondReductionWindowLength = convertToDuration ( windowLengthRaw )
164+ details .PromotionScrubPeriod = promotionScrubPeriodSeconds . toDuration ( )
165+ details .BondReductionWindowStart = windowStartRaw . toDuration ( )
166+ details .BondReductionWindowLength = windowLengthRaw . toDuration ( )
167167
168168 // Get various balances
169169 addresses := []common.Address {
0 commit comments