Skip to content

Commit

Permalink
fix unexpected register fee amount (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
gidonkatten authored Jan 1, 2025
1 parent a699cbe commit dd291d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-bottles-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@folks-finance/algorand-sdk": patch
---

fix unexpected register fee amount
2 changes: 1 addition & 1 deletion src/algo-liquid-governance/v2/governance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function prepareRegisterEscrowOnlineTransactions(
const escrowAddr = getDistributorLogicSig(senderAddr).address();

// check register fee is either 0 ALGO or 0.2 ALGO
if (registerFeeAmount !== 0 && registerFeeAmount !== PAYOUTS_GO_ONLINE_FEE)
if (BigInt(registerFeeAmount) !== BigInt(0) && BigInt(registerFeeAmount) !== PAYOUTS_GO_ONLINE_FEE)
throw Error("Unexpected register fee amount");

const sendAlgo = {
Expand Down

0 comments on commit dd291d6

Please sign in to comment.