From 02eb26cfed182d40843ed6ecb69d667de0fc6989 Mon Sep 17 00:00:00 2001 From: sagar sapkota Date: Tue, 17 Dec 2024 15:24:48 +0545 Subject: [PATCH] recursion correction --- .../java/network/balanced/score/tokens/BoostedBalnImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/token-contracts/bBaln/src/main/java/network/balanced/score/tokens/BoostedBalnImpl.java b/token-contracts/bBaln/src/main/java/network/balanced/score/tokens/BoostedBalnImpl.java index 894c999d1..2d10c88dc 100644 --- a/token-contracts/bBaln/src/main/java/network/balanced/score/tokens/BoostedBalnImpl.java +++ b/token-contracts/bBaln/src/main/java/network/balanced/score/tokens/BoostedBalnImpl.java @@ -326,7 +326,7 @@ public void xWithdrawEarly(String _from) { } public void xWithdraw(String _from) { - xWithdraw(_from); + withdrawInternal(_from); } @External @@ -481,9 +481,7 @@ public BigInteger xBalanceOfAt(String _owner, BigInteger block) { } UnsignedBigInteger delta = blockTime.subtract(uPoint.timestamp); - BigInteger balance = uPoint.bias.subtract(uPoint.slope.multiply(delta.toBigInteger())).max(BigInteger.ZERO); - - return balance; + return uPoint.bias.subtract(uPoint.slope.multiply(delta.toBigInteger())).max(BigInteger.ZERO); } @External(readonly = true)