From 39b1322ad0bd61effb172c3721c455133f618d53 Mon Sep 17 00:00:00 2001 From: leej1012 Date: Wed, 24 Jul 2024 15:26:33 +0800 Subject: [PATCH] Update getCurrentStake --- .../java/com/github/ontio/model/dto/NodeInfoOnChainDto.java | 4 ++-- .../src/main/resources/mapper/NodeInfoOnChainMapper.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/back-end-projects/Explorer/src/main/java/com/github/ontio/model/dto/NodeInfoOnChainDto.java b/back-end-projects/Explorer/src/main/java/com/github/ontio/model/dto/NodeInfoOnChainDto.java index be5cae1b..eb52b6fc 100644 --- a/back-end-projects/Explorer/src/main/java/com/github/ontio/model/dto/NodeInfoOnChainDto.java +++ b/back-end-projects/Explorer/src/main/java/com/github/ontio/model/dto/NodeInfoOnChainDto.java @@ -31,7 +31,7 @@ public class NodeInfoOnChainDto extends NodeInfoOnChain { private Integer badActor; @Transient - private String userApy; + private String apr; public NodeInfoOnChainDto() { @@ -45,6 +45,6 @@ public NodeInfoOnChainDto(NodeInfoOnChainDto nodeInfoOnChain) { this.ontologyHarbinger = nodeInfoOnChain.getOntologyHarbinger(); this.risky = nodeInfoOnChain.getRisky(); this.badActor = nodeInfoOnChain.getBadActor(); - this.userApy = nodeInfoOnChain.getUserApy(); + this.apr = nodeInfoOnChain.getApr(); } } \ No newline at end of file diff --git a/back-end-projects/Explorer/src/main/resources/mapper/NodeInfoOnChainMapper.xml b/back-end-projects/Explorer/src/main/resources/mapper/NodeInfoOnChainMapper.xml index 4ff760eb..4e064caa 100644 --- a/back-end-projects/Explorer/src/main/resources/mapper/NodeInfoOnChainMapper.xml +++ b/back-end-projects/Explorer/src/main/resources/mapper/NodeInfoOnChainMapper.xml @@ -48,7 +48,7 @@ b.fee_sharing_ratio, b.risky, b.bad_actor, - IFNULL(c.user_apy,'0.00%') as user_apy + IFNULL(c.user_apy,'0.00%') as apr FROM tbl_node_info_on_chain a LEFT JOIN tbl_node_info_off_chain b ON a.public_key = b.public_key LEFT JOIN tbl_node_inspire c ON a.public_key = c.public_key