Skip to content

Commit

Permalink
Android - kava lcd bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wannabit-yongjoo committed Sep 17, 2021
1 parent e9b5a2c commit 4fbf200
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,12 @@ public String getMainDenom(BaseChain baseChain) {
}

public BigDecimal getQuorum (BaseChain baseChain) {
if (isGRPC(baseChain)) {
if (baseChain.equals(CERTIK_MAIN) || baseChain.equals(CERTIK_TEST)) {
return new BigDecimal(govTallyings.tallyparams.defaultTally.quorum).movePointRight(2);
} else if (isGRPC(baseChain)) {
return new BigDecimal(govTallyings.tallyparams.quorum).movePointRight(2);

} else {
if (baseChain.equals(CERTIK_MAIN) || baseChain.equals(CERTIK_TEST)) {
return new BigDecimal(govTallyings.tallyparams.defaultTally.quorum).movePointRight(2);
}
return new BigDecimal(govTallyings.tallyparams.quorum).movePointRight(2);
return new BigDecimal(govTallyings.quorum).movePointRight(2);
}
}

Expand Down Expand Up @@ -374,6 +372,16 @@ public class GovTallyings {
@SerializedName("tally_params")
public GovTallying tallyparams;

@SerializedName("quorum")
public String quorum;

@SerializedName("veto")
public String veto;

@SerializedName("threshold")
public String threshold;


public class GovTallying {
@SerializedName("quorum")
public String quorum;
Expand Down

0 comments on commit 4fbf200

Please sign in to comment.