Skip to content

Commit

Permalink
recursion correction
Browse files Browse the repository at this point in the history
  • Loading branch information
sagars committed Dec 17, 2024
1 parent 891785b commit 02eb26c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void xWithdrawEarly(String _from) {
}

public void xWithdraw(String _from) {
xWithdraw(_from);
withdrawInternal(_from);
}

@External
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 02eb26c

Please sign in to comment.