audius-protocol
audius-protocol copied to clipboard
[PAY-2251] Allow purchase content via payment router with user bank source
Description
purchaseContent
routing funds through payment router now supports userbank as a source account.
Current status:
- coinflow transaction works (example tx),
- after merging main, got a type error that i don't understand how it didn't appear as a merge conflict. see the commit with "CONFLICT" in the title.
- have not tested my attempt to fix the conflict (which is in add funds flow i believe).
- have not tested that sending from userbank still works after latest 3 commits.
How Has This Been Tested?
Successful userbank transfer: https://solscan.io/tx/42y6NedjTUD943qGxB9Ztw75HSpNXAVjTjshyDfg1R8T37fp9rwN3AViU8u3QyCuhTfm4x5WiP8i5haPKjugeB2t
solana root account still works: https://solscan.io/tx/3nN1JyVQXHnBaUxMwWK4z6gvZkrxwp1tPPTDc58b16qLHPVN3qsdYdxvbx47dgKDkUTafY1ozJnt9C8nkCCHF42L
Preview this change https://demo.audius.co/rt-coinflow
Looks good. Just to clarify something in the description: Is this actually meant to use coinflow to fund a user bank and then send from that userbank to payment router? Or is this just sending from a userbank straight to payment router?
the latter!
Preview this change https://demo.audius.co/rt-coinflow
Preview this change https://demo.audius.co/rt-coinflow
Preview this change https://demo.audius.co/rt-coinflow