Skip to content

Commit

Permalink
use beacon strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Dec 17, 2024
1 parent 05ab85a commit 82fba93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/core/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type Validator struct {
CurrentBalance uint64
}

const NATIVE_ETH_STRATEGY = "0xbeaC0eeEeeeeEEeEeEEEEeeEEeEeeeEeeEEBEaC0"

type EigenpodStatus struct {
Validators map[string]Validator

Expand Down Expand Up @@ -153,7 +155,9 @@ func GetStatus(ctx context.Context, eigenpodAddress string, eth *ethclient.Clien
delegationManager, err := DelegationManager.NewDelegationManager(delegationManagerAddress, eth)
PanicOnError("failed to reach delegationManager", err)

shares, err := delegationManager.GetWithdrawableShares(nil, eigenPodOwner, []common.Address{})
shares, err := delegationManager.GetWithdrawableShares(nil, eigenPodOwner, []common.Address{
common.HexToAddress(NATIVE_ETH_STRATEGY),
})
PanicOnError("failed to load owner shares", err)

currentOwnerSharesETH := IweiToEther(shares.WithdrawableShares[0])
Expand Down

0 comments on commit 82fba93

Please sign in to comment.