Skip to content

Commit

Permalink
Merge pull request #14 from the-standard/202406-snagging
Browse files Browse the repository at this point in the history
chore: add temp debugging
  • Loading branch information
ZakMooney authored Jun 26, 2024
2 parents 784ccc5 + 9562c21 commit 207808a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/liquidation-pools/StakedAssets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const StakedAssets = ({

const isLoading = loading;

console.log('DEBUG TRUE')
console.log('DEBUGGING')

return (
<>
Expand Down
8 changes: 4 additions & 4 deletions src/components/liquidation-pools/WithdrawModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const WithdrawModal = ({
address: liquidationPoolAddress,
functionName: "decreasePosition",
args: [
parseEther(tstWithdrawAmount.toString()),
parseEther(eurosWithdrawAmount.toString()),
tstWithdrawAmount,
eurosWithdrawAmount,
],
});
} catch (error) {
Expand Down Expand Up @@ -119,7 +119,7 @@ const WithdrawModal = ({

const handleTstAmount = (e) => {
if (Number(e.target.value) < 10n ** 21n) {
setTstWithdrawAmount(Number(e.target.value));
setTstWithdrawAmount(parseEther(e.target.value.toString()));
}
};

Expand All @@ -132,7 +132,7 @@ const WithdrawModal = ({

const handleEurosAmount = (e) => {
if (Number(e.target.value) < 10n ** 21n) {
setEurosWithdrawAmount(Number(e.target.value));
setEurosWithdrawAmount(parseEther(e.target.value.toString()));
}
};

Expand Down

0 comments on commit 207808a

Please sign in to comment.