Skip to content

Commit

Permalink
fix : call staker address (#114)
Browse files Browse the repository at this point in the history
fix : get contracts address StakingReward domain
  • Loading branch information
felix-shin-wt authored Jul 18, 2024
1 parent 71325e9 commit d0319f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wemix/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ func (ma *wemixAdmin) getRewardParams(ctx context.Context, height *big.Int) (*re
}
rp.distributionMethod = []*big.Int{distributionMethod1, distributionMethod2, distributionMethod3, distributionMethod4}

staker, err := contracts.Registry.GetContractAddress(opts, metclient.ToBytes32(gov.DOMAIN_Staking))
staker, err := contracts.Registry.GetContractAddress(opts, metclient.ToBytes32(gov.DOMAIN_StakingReward))
if err != nil {
return nil, errors.Wrap(err, gov.DOMAIN_Staking)
return nil, errors.Wrap(err, gov.DOMAIN_StakingReward)
}
rp.staker = &staker

Expand Down

0 comments on commit d0319f9

Please sign in to comment.