Skip to content

Commit

Permalink
fix: add an error if currency is not recognized [SF-962]
Browse files Browse the repository at this point in the history
  • Loading branch information
NetFreak26 committed Dec 16, 2023
1 parent d6e6a3a commit d4f863a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helper/initializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export const initTransfer = (
user.depositAUSDC = user.depositAUSDC.plus(amount);
} else if (currencyString == 'axlFIL') {
user.depositAXLFIL = user.depositAXLFIL.plus(amount);
} else {
console.error('Invalid currency: ' + currencyString);
}
user.transferCount = user.transferCount.plus(BigInt.fromI32(1));
user.save();
Expand Down

0 comments on commit d4f863a

Please sign in to comment.