Skip to content

Commit

Permalink
AND-9355 changed xrp reserve when account is not created
Browse files Browse the repository at this point in the history
  • Loading branch information
kozarezvlad committed Dec 6, 2024
1 parent 15f0337 commit 4bf3e25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.ripple.core.coretypes.Amount as XrpAmount
class XrpTransactionBuilder(private val networkProvider: XrpNetworkProvider, publicKey: ByteArray) {
var sequence: Long? = null
// https://xrpl.org/blog/2021/reserves-lowered.html
var minReserve = 10.toBigDecimal()
var minReserve = 1.toBigDecimal()
val blockchain = Blockchain.XRP

private val canonicalPublicKey = XrpAddressService.canonizePublicKey(publicKey)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class XrpWalletManager(
wallet.setCoinValue(response.balance - response.reserveTotal)
wallet.setReserveValue(response.reserveTotal)
transactionBuilder.sequence = response.sequence
transactionBuilder.minReserve = response.reserveTotal
transactionBuilder.minReserve = response.reserveBase

if (response.hasUnconfirmed) {
if (wallet.recentTransactions.isEmpty()) wallet.addTransactionDummy()
Expand Down

0 comments on commit 4bf3e25

Please sign in to comment.