-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replicate OfferCreate functionality in Payments to Self #5090
Comments
Relevant code is here: rippled/src/xrpld/app/paths/detail/DirectStep.cpp Lines 403 to 457 in e5aa605
I'd argue, once the Auth and NoRipple checks are passed, if Payment's Account is equal to Destination, the line should be created, if it does not exist, and the LimitAmount ignored. |
I have previously written code that allows a Payment transaction (to self) to create a trustline automatically in the same way as OfferCreate. https://github.com/tequdev/rippled/pull/3/files |
Summary
I want to use Payments to condense multiple
OfferCreates
into a singlePayment
to self, i.e. a Payment whereAccount
andDestination
are the same. To do this I need to have aLimitAmount
which exceeds theAmount
of thePayment
. If I were to consume the same chain of offers usingOfferCreate
no suchLimitAmount
would be required and in fact, no existing TrustLine/RippleState is required.Motivation
To reduce transaction counts for arbitrage, by using fewer Payment transactions than OfferCreate transactions and to avoid unnecessary TrustSet transactions.
Solution
Remove the check for a LimitAmount exceeding Amount for Payments to self.
The text was updated successfully, but these errors were encountered: