Skip to content

move: Fix withdrawing small amounts#210

Merged
lukaw3d merged 6 commits intomasterfrom
lw/fix-small-withdrawals
Feb 27, 2025
Merged

move: Fix withdrawing small amounts#210
lukaw3d merged 6 commits intomasterfrom
lw/fix-small-withdrawals

Conversation

@lukaw3d
Copy link
Contributor

@lukaw3d lukaw3d commented Feb 18, 2025

Built on top of #155

Fixes #199
Now correctly warns that 0.015 amount is too low; 0.01700001 works. I was still more comfortable with a higher limit at #87 tho.

@github-actions
Copy link

github-actions bot commented Feb 18, 2025

Deployed to Cloudflare Pages

Latest commit: 19b49ee4617d6592f421d86627690841e95cc1c4
Status:✅ Deploy successful!
Preview URL: https://4519be22.rose-app.pages.dev
Alias: https://pr-210.rose-app.pages.dev

@lukaw3d lukaw3d force-pushed the lw/fix-small-withdrawals branch 4 times, most recently from c520df1 to 8d84686 Compare February 25, 2025 17:33
import { SapphireAccount } from './useGenerateSapphireAccount'

const withdrawFeeAmount = sapphireConfig.gasPrice * sapphireConfig.feeGas * multiplyConsensusToSapphire
export const withdrawFeeAmount = sapphireConfig.gasPrice * sapphireConfig.feeGas * multiplyConsensusToSapphire
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is sapphireConfig.feeGas defined as 70k? Usually transfers take like 20k units of gas (https://support.metamask.io/more-web3/learn/how-to-estimate-the-gas-fee/#getting-the-gas-limit - 21k to be exact). Is there anything different on Sapphire?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukaw3d lukaw3d force-pushed the lw/fix-small-withdrawals branch from 8c01ec6 to 19b49ee Compare February 27, 2025 13:05
@lukaw3d lukaw3d merged commit cfaef01 into master Feb 27, 2025
5 checks passed
@lukaw3d lukaw3d deleted the lw/fix-small-withdrawals branch February 27, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix withdrawing small amounts

3 participants

Comments