Skip to content

Commit

Permalink
Update Node
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Aug 9, 2024
1 parent 341ea23 commit d32b014
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,12 @@ public class NodeStakeDto {

// user apr
private String apr;

private Integer feeSharingRatio;

private Integer ontologyHarbinger;

private Integer risky;

private Integer badActor;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,10 @@ private void putStakingInfoList4Onto(String address, String stakingInfo, NodeInf
String publicKey = nodeInfoOffChain.getPublicKey();
String nodeName = nodeInfoOffChain.getName();
String stakeWalletAddress = nodeInfoOffChain.getAddress();
Integer badActor = nodeInfoOffChain.getBadActor();
Integer risky = nodeInfoOffChain.getRisky();
Integer feeSharingRatio = nodeInfoOffChain.getFeeSharingRatio();
Integer ontologyHarbinger = nodeInfoOffChain.getOntologyHarbinger();
if (address.equalsIgnoreCase(stakeWalletAddress)) {
return;
}
Expand Down Expand Up @@ -1680,6 +1684,10 @@ private void putStakingInfoList4Onto(String address, String stakingInfo, NodeInf
dto.setMaxAuthorize(maxAuthorize);
dto.setCurrentRound(currentRound);
dto.setApr(userApy);
dto.setFeeSharingRatio(feeSharingRatio);
dto.setOntologyHarbinger(ontologyHarbinger);
dto.setRisky(risky);
dto.setBadActor(badActor);
nodeStakeDtos.add(dto);
}
if (withdrawUnfreezePos > 0) {
Expand All @@ -1696,6 +1704,10 @@ private void putStakingInfoList4Onto(String address, String stakingInfo, NodeInf
dto.setMaxAuthorize(maxAuthorize);
dto.setCurrentRound(currentRound);
dto.setApr(userApy);
dto.setFeeSharingRatio(feeSharingRatio);
dto.setOntologyHarbinger(ontologyHarbinger);
dto.setRisky(risky);
dto.setBadActor(badActor);
nodeStakeDtos.add(dto);
}
if (withdrawPos + withdrawFreezePos > 0) {
Expand All @@ -1713,6 +1725,10 @@ private void putStakingInfoList4Onto(String address, String stakingInfo, NodeInf
dto.setMaxAuthorize(maxAuthorize);
dto.setCurrentRound(currentRound);
dto.setApr(userApy);
dto.setFeeSharingRatio(feeSharingRatio);
dto.setOntologyHarbinger(ontologyHarbinger);
dto.setRisky(risky);
dto.setBadActor(badActor);
nodeStakeDtos.add(dto);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
a.name,
a.address,
a.node_type,
a.bad_actor,
a.risky,
a.fee_sharing_ratio,
a.ontology_harbinger,
b.progress,
b.total_pos,
b.max_authorize,
Expand Down

0 comments on commit d32b014

Please sign in to comment.