-
Notifications
You must be signed in to change notification settings - Fork 35
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
Exchange: Add functionality for payments (e.g. P2P). #1703
Comments
I'm tempted to use "Seller" and "Buyer" instead of "Sender" and "Recipient", but in some cases (e.g. zero recipient assets), there isn't really a "buyer". It also gets a bit fuzzy when you consider the case where A creates a |
Alternatively, instead of needing a market for these, we might add some settings to the exchange module that define the fees to charge for conditional sends. If these need to go through a market, I feel like there should be a way to set up a market to only allow conditional sends. I also feel like a conditional send should only be creatable if the market is accepting orders and allows self-settlement, but the self-settlement flag might not be accurate, so maybe a new flag for allow-conditional-sends or something. I'd need to work through various scenarios to actually identify the best way to define such a setting. |
Also, it might be better to take out the Recipient Fees field, and move that field to the message for accepting a conditional send. |
I decided I like the name "Payment" for these instead of "Conditional Send." I wasn't a fan of "Conditional Send" because it's a bit clunky and long. It also doesn't say to me, "this can be used to facilitate trades" as well as I'd like. What I like about "Payment":
|
Here's a hackmd where I've worked through the details: https://hackmd.io/@dwedul/rk1rhnCcp |
It will indirectly when scopes are properly supported as coins with a supply of 1. (This is a future bank module enhancement for nfts) |
Summary
Create a way for one account to send/trade with another specific account where the funds are held in the sender's account until accepted by the receiver or canceled by either.
Problem Definition
As an asset owner, I want to be able to sell assets to a specific person at a specific price but keep the assets in my account until the sale is completed.
As a yield distributor, I want to initiate a peer-to-peer payment to an account where the recipient must accept the funds, but the funds stay in my account until that time.
As a validator and/or hash stakeholder, I want to be able to collect extra fees on these.
Proposal
See https://hackmd.io/@dwedul/rk1rhnCcp#The-plan for details.
For Admin Use
The text was updated successfully, but these errors were encountered: