Skip to content

Commit

Permalink
fix(suite-native): xrp unspendable reserve
Browse files Browse the repository at this point in the history
  • Loading branch information
PeKne committed Dec 11, 2024
1 parent 4e6ac6a commit a9a2d76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions suite-native/module-send/src/screens/SendOutputsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const SendOutputsScreen = ({
networkFeeInfo,
accountDescriptor: account?.descriptor,
symbol: account?.symbol,
availableBalance: tokenInfo?.balance ?? account?.formattedBalance,
availableBalance: tokenInfo?.balance ?? account?.availableBalance,
isTokenFlow: !!tokenContract,
isValueInSats: isAmountInSats,
feeLevelsMaxAmount,
Expand Down Expand Up @@ -157,8 +157,7 @@ export const SendOutputsScreen = ({

if (isReserveError) {
setError('outputs.0.amount', {
message:
'Recipient account requires minimum reserve of 10 XRP to activate.',
message: 'Recipient account requires minimum reserve of 1 XRP to activate.',
});
}

Expand Down
2 changes: 1 addition & 1 deletion suite-native/module-send/src/sendOutputsFormSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const sendOutputsFormValidationSchema = yup.object({
)
.test(
'ripple-higher-than-reserve',
'Amount is above the required unspendable reserve (10 XRP)',
'Amount is above the required unspendable reserve (1 XRP)',
function (
value,
{ options: { context } }: yup.TestContext<SendFormFormContext>,
Expand Down

0 comments on commit a9a2d76

Please sign in to comment.