Skip to content

Commit

Permalink
Staking pools - remove unused pendingRestakedReward
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboehm committed Jan 31, 2024
1 parent ac46385 commit 1d95413
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
1 change: 0 additions & 1 deletion api/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
})
Expand Down
8 changes: 0 additions & 8 deletions bchain/coins/eth/stakingpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion bchain/types_ethereum_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 0 additions & 1 deletion blockbook-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export interface StakingPool {
depositedBalance: string;
withdrawTotalAmount: string;
claimableAmount: string;
pendingRestakedReward: string;
restakedReward: string;
autocompoundBalance: string;
}
Expand Down
4 changes: 0 additions & 4 deletions static/templates/address.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,6 @@ <h5 class="col-12 mb-md-0">Staking Pools <span class="badge bg-secondary">{{len
<td style="width: 25%;">Claimable Amount</td>
<td>{{amountSpan $sp.ClaimableAmount $data "copyable"}}</td>
</tr>
<tr>
<td>Pending Restaked Reward</td>
<td>{{amountSpan $sp.PendingRestakedReward $data "copyable"}}</td>
</tr>
<tr>
<td>Restaked Reward</td>
<td>{{amountSpan $sp.RestakedReward $data "copyable"}}</td>
Expand Down

0 comments on commit 1d95413

Please sign in to comment.