diff --git a/api/types.go b/api/types.go index 215c5881..da127dd6 100644 --- a/api/types.go +++ b/api/types.go @@ -325,7 +325,6 @@ type StakingPool struct { DepositedBalance *Amount `json:"depositedBalance"` WithdrawTotalAmount *Amount `json:"withdrawTotalAmount"` ClaimableAmount *Amount `json:"claimableAmount"` - PendingRestakedReward *Amount `json:"pendingRestakedReward"` RestakedReward *Amount `json:"restakedReward"` AutocompoundBalance *Amount `json:"autocompoundBalance"` } diff --git a/api/worker.go b/api/worker.go index a30dc06e..a1af2678 100644 --- a/api/worker.go +++ b/api/worker.go @@ -1185,7 +1185,6 @@ func (w *Worker) getStakingPoolsData(addrDesc bchain.AddressDescriptor) ([]Staki DepositedBalance: (*Amount)(&p.DepositedBalance), WithdrawTotalAmount: (*Amount)(&p.WithdrawTotalAmount), ClaimableAmount: (*Amount)(&p.ClaimableAmount), - PendingRestakedReward: (*Amount)(&p.PendingRestakedReward), RestakedReward: (*Amount)(&p.RestakedReward), AutocompoundBalance: (*Amount)(&p.AutocompoundBalance), }) diff --git a/bchain/coins/eth/stakingpool.go b/bchain/coins/eth/stakingpool.go index 1947c77e..30820390 100644 --- a/bchain/coins/eth/stakingpool.go +++ b/bchain/coins/eth/stakingpool.go @@ -52,7 +52,6 @@ const everstakePendingBalanceOfMethodSignature = "0x59b8c763" // pendin const everstakePendingDepositedBalanceOfMethodSignature = "0x80f14ecc" // pendingDepositedBalanceOf(address) const everstakeDepositedBalanceOfMethodSignature = "0x68b48254" // depositedBalanceOf(address) const everstakeWithdrawRequestMethodSignature = "0x14cbc46a" // withdrawRequest(address) -const everstakePendingRestakedRewardOfMethodSignature = "0x376d1884" // pendingRestakedRewardOf(address) const everstakeRestakedRewardOfMethodSignature = "0x0c98929a" // restakedRewardOf(address) const everstakeAutocompoundBalanceOfMethodSignature = "0x2fec7966" // autocompoundBalanceOf(address) @@ -122,13 +121,6 @@ func (b *EthereumRPC) everstakePoolData(addr, contract, name string) (*bchain.St poolData.ClaimableAmount = *value allZeros = allZeros && isZeroBigInt(value) - value, err = b.everstakeContractCallSimpleNumeric(everstakePendingRestakedRewardOfMethodSignature, addr, contract) - if err != nil { - return nil, err - } - poolData.PendingRestakedReward = *value - allZeros = allZeros && isZeroBigInt(value) - value, err = b.everstakeContractCallSimpleNumeric(everstakeRestakedRewardOfMethodSignature, addr, contract) if err != nil { return nil, err diff --git a/bchain/types_ethereum_type.go b/bchain/types_ethereum_type.go index 9fc43d99..6ee54c2f 100644 --- a/bchain/types_ethereum_type.go +++ b/bchain/types_ethereum_type.go @@ -156,7 +156,6 @@ type StakingPoolData struct { DepositedBalance big.Int `json:"depositedBalance"` // depositedBalanceOf method WithdrawTotalAmount big.Int `json:"withdrawTotalAmount"` // withdrawRequest method, return value [0] ClaimableAmount big.Int `json:"claimableAmount"` // withdrawRequest method, return value [1] - PendingRestakedReward big.Int `json:"pendingRestakedReward"` // pendingRestakedRewardOf method RestakedReward big.Int `json:"restakedReward"` // restakedRewardOf method AutocompoundBalance big.Int `json:"autocompoundBalance"` // autocompoundBalanceOf method } diff --git a/blockbook-api.ts b/blockbook-api.ts index 09f064b1..f36c9352 100644 --- a/blockbook-api.ts +++ b/blockbook-api.ts @@ -116,7 +116,6 @@ export interface StakingPool { depositedBalance: string; withdrawTotalAmount: string; claimableAmount: string; - pendingRestakedReward: string; restakedReward: string; autocompoundBalance: string; } diff --git a/static/templates/address.html b/static/templates/address.html index a0e3dfaf..6549c377 100644 --- a/static/templates/address.html +++ b/static/templates/address.html @@ -259,10 +259,6 @@