Skip to content

Commit

Permalink
Embedded LND: Keysend: fix fee rate
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Mar 2, 2024
1 parent 25bbdf5 commit 8ffca5c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion lndmobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export const sendKeysendPaymentV2 = (request: any): Promise<lnrpc.Payment> => {
no_inflight_updates: true,
timeout_seconds: 60,
max_parts: max_parts || 1,
fee_limit_sat: fee_limit_sat || 0,
fee_limit_sat,
max_shard_size_msat,
cltv_limit: cltv_limit || 0,
amp
Expand Down
58 changes: 30 additions & 28 deletions views/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ export default class Send extends React.Component<SendProps, SendState> {
streamingCall = TransactionsStore.sendPayment({
amount: satAmount.toString(),
pubkey: destination,
fee_limit_sat: feeLimitSat,
message
});
}
Expand Down Expand Up @@ -879,6 +880,33 @@ export default class Send extends React.Component<SendProps, SendState> {

{BackendUtils.supportsAMP() && (
<React.Fragment>
<Text
style={{
...styles.text,
color: themeColor(
'secondaryText'
)
}}
>
{`${localeString(
'views.PaymentRequest.feeLimit'
)} (${localeString(
'general.sats'
)}) (${localeString(
'general.optional'
)})`}
:
</Text>
<TextInput
keyboardType="numeric"
placeholder="100"
value={feeLimitSat}
onChangeText={(text: string) =>
this.setState({
feeLimitSat: text
})
}
/>
<Text
style={{
...styles.text,
Expand Down Expand Up @@ -982,33 +1010,6 @@ export default class Send extends React.Component<SendProps, SendState> {
'views.PaymentRequest.maxPartsDescription'
)}
</Text>
<Text
style={{
...styles.text,
color: themeColor(
'secondaryText'
)
}}
>
{`${localeString(
'views.PaymentRequest.feeLimit'
)} (${localeString(
'general.sats'
)}) (${localeString(
'general.optional'
)})`}
:
</Text>
<TextInput
keyboardType="numeric"
placeholder="100"
value={feeLimitSat}
onChangeText={(text: string) =>
this.setState({
feeLimitSat: text
})
}
/>
<Text
style={{
...styles.text,
Expand Down Expand Up @@ -1165,7 +1166,8 @@ const styles = StyleSheet.create({
},
button: {
alignItems: 'center',
paddingTop: 30
paddingTop: 30,
paddingBottom: 130
},
feeTableButton: {
paddingTop: 15,
Expand Down

0 comments on commit 8ffca5c

Please sign in to comment.