Staking pools - remove unused pendingRestakedReward

This commit is contained in:
Martin Boehm 2024-01-31 23:45:09 +01:00
parent ac46385f49
commit 1d95413f73
6 changed files with 0 additions and 16 deletions

View File

@ -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"`
}

View File

@ -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),
})

View File

@ -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

View File

@ -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
}

View File

@ -116,7 +116,6 @@ export interface StakingPool {
depositedBalance: string;
withdrawTotalAmount: string;
claimableAmount: string;
pendingRestakedReward: string;
restakedReward: string;
autocompoundBalance: string;
}

View File

@ -259,10 +259,6 @@
<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>