Staking pools - remove unused pendingRestakedReward
This commit is contained in:
parent
ac46385f49
commit
1d95413f73
@ -325,7 +325,6 @@ type StakingPool struct {
|
|||||||
DepositedBalance *Amount `json:"depositedBalance"`
|
DepositedBalance *Amount `json:"depositedBalance"`
|
||||||
WithdrawTotalAmount *Amount `json:"withdrawTotalAmount"`
|
WithdrawTotalAmount *Amount `json:"withdrawTotalAmount"`
|
||||||
ClaimableAmount *Amount `json:"claimableAmount"`
|
ClaimableAmount *Amount `json:"claimableAmount"`
|
||||||
PendingRestakedReward *Amount `json:"pendingRestakedReward"`
|
|
||||||
RestakedReward *Amount `json:"restakedReward"`
|
RestakedReward *Amount `json:"restakedReward"`
|
||||||
AutocompoundBalance *Amount `json:"autocompoundBalance"`
|
AutocompoundBalance *Amount `json:"autocompoundBalance"`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1185,7 +1185,6 @@ func (w *Worker) getStakingPoolsData(addrDesc bchain.AddressDescriptor) ([]Staki
|
|||||||
DepositedBalance: (*Amount)(&p.DepositedBalance),
|
DepositedBalance: (*Amount)(&p.DepositedBalance),
|
||||||
WithdrawTotalAmount: (*Amount)(&p.WithdrawTotalAmount),
|
WithdrawTotalAmount: (*Amount)(&p.WithdrawTotalAmount),
|
||||||
ClaimableAmount: (*Amount)(&p.ClaimableAmount),
|
ClaimableAmount: (*Amount)(&p.ClaimableAmount),
|
||||||
PendingRestakedReward: (*Amount)(&p.PendingRestakedReward),
|
|
||||||
RestakedReward: (*Amount)(&p.RestakedReward),
|
RestakedReward: (*Amount)(&p.RestakedReward),
|
||||||
AutocompoundBalance: (*Amount)(&p.AutocompoundBalance),
|
AutocompoundBalance: (*Amount)(&p.AutocompoundBalance),
|
||||||
})
|
})
|
||||||
|
|||||||
@ -52,7 +52,6 @@ const everstakePendingBalanceOfMethodSignature = "0x59b8c763" // pendin
|
|||||||
const everstakePendingDepositedBalanceOfMethodSignature = "0x80f14ecc" // pendingDepositedBalanceOf(address)
|
const everstakePendingDepositedBalanceOfMethodSignature = "0x80f14ecc" // pendingDepositedBalanceOf(address)
|
||||||
const everstakeDepositedBalanceOfMethodSignature = "0x68b48254" // depositedBalanceOf(address)
|
const everstakeDepositedBalanceOfMethodSignature = "0x68b48254" // depositedBalanceOf(address)
|
||||||
const everstakeWithdrawRequestMethodSignature = "0x14cbc46a" // withdrawRequest(address)
|
const everstakeWithdrawRequestMethodSignature = "0x14cbc46a" // withdrawRequest(address)
|
||||||
const everstakePendingRestakedRewardOfMethodSignature = "0x376d1884" // pendingRestakedRewardOf(address)
|
|
||||||
const everstakeRestakedRewardOfMethodSignature = "0x0c98929a" // restakedRewardOf(address)
|
const everstakeRestakedRewardOfMethodSignature = "0x0c98929a" // restakedRewardOf(address)
|
||||||
const everstakeAutocompoundBalanceOfMethodSignature = "0x2fec7966" // autocompoundBalanceOf(address)
|
const everstakeAutocompoundBalanceOfMethodSignature = "0x2fec7966" // autocompoundBalanceOf(address)
|
||||||
|
|
||||||
@ -122,13 +121,6 @@ func (b *EthereumRPC) everstakePoolData(addr, contract, name string) (*bchain.St
|
|||||||
poolData.ClaimableAmount = *value
|
poolData.ClaimableAmount = *value
|
||||||
allZeros = allZeros && isZeroBigInt(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)
|
value, err = b.everstakeContractCallSimpleNumeric(everstakeRestakedRewardOfMethodSignature, addr, contract)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@ -156,7 +156,6 @@ type StakingPoolData struct {
|
|||||||
DepositedBalance big.Int `json:"depositedBalance"` // depositedBalanceOf method
|
DepositedBalance big.Int `json:"depositedBalance"` // depositedBalanceOf method
|
||||||
WithdrawTotalAmount big.Int `json:"withdrawTotalAmount"` // withdrawRequest method, return value [0]
|
WithdrawTotalAmount big.Int `json:"withdrawTotalAmount"` // withdrawRequest method, return value [0]
|
||||||
ClaimableAmount big.Int `json:"claimableAmount"` // withdrawRequest method, return value [1]
|
ClaimableAmount big.Int `json:"claimableAmount"` // withdrawRequest method, return value [1]
|
||||||
PendingRestakedReward big.Int `json:"pendingRestakedReward"` // pendingRestakedRewardOf method
|
|
||||||
RestakedReward big.Int `json:"restakedReward"` // restakedRewardOf method
|
RestakedReward big.Int `json:"restakedReward"` // restakedRewardOf method
|
||||||
AutocompoundBalance big.Int `json:"autocompoundBalance"` // autocompoundBalanceOf method
|
AutocompoundBalance big.Int `json:"autocompoundBalance"` // autocompoundBalanceOf method
|
||||||
}
|
}
|
||||||
|
|||||||
@ -116,7 +116,6 @@ export interface StakingPool {
|
|||||||
depositedBalance: string;
|
depositedBalance: string;
|
||||||
withdrawTotalAmount: string;
|
withdrawTotalAmount: string;
|
||||||
claimableAmount: string;
|
claimableAmount: string;
|
||||||
pendingRestakedReward: string;
|
|
||||||
restakedReward: string;
|
restakedReward: string;
|
||||||
autocompoundBalance: string;
|
autocompoundBalance: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -259,10 +259,6 @@
|
|||||||
<td style="width: 25%;">Claimable Amount</td>
|
<td style="width: 25%;">Claimable Amount</td>
|
||||||
<td>{{amountSpan $sp.ClaimableAmount $data "copyable"}}</td>
|
<td>{{amountSpan $sp.ClaimableAmount $data "copyable"}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>Pending Restaked Reward</td>
|
|
||||||
<td>{{amountSpan $sp.PendingRestakedReward $data "copyable"}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Restaked Reward</td>
|
<td>Restaked Reward</td>
|
||||||
<td>{{amountSpan $sp.RestakedReward $data "copyable"}}</td>
|
<td>{{amountSpan $sp.RestakedReward $data "copyable"}}</td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user