Skip to content
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

spl-memo on delegate dc #431

Merged
merged 3 commits into from
Aug 17, 2023
Merged

spl-memo on delegate dc #431

merged 3 commits into from
Aug 17, 2023

Conversation

bryzettler
Copy link
Contributor

@bryzettler bryzettler commented Aug 16, 2023

Context

wallet to purchase DC directly towards OUI 1 and have their console account balance updated.

How does it work

Under the hood, it's about checking
• does the delegation txn have a memo that's associated with an console user account?
• how much DC is delegated
so Foundation Console can look at the txn and say "ok console user xyz, your account balance has been increased by xyz amount"

Why a memo is needed

A memo needs to be associated with a console account, otherwise console account A can steal account B's delegate txn.

example tx https://explorer.solana.com/tx/3BXHy7NTuRkhdVzPV8YJvhaqAUWRuCXdZrvSTu8LhUjaAEy9zSaAc8y9Fw3nVJ8X7H2RY51zpn1mo1QFajNikoU7?cluster=devnet

@bryzettler bryzettler marked this pull request as ready for review August 17, 2023 00:44
@bryzettler bryzettler requested a review from a team as a code owner August 17, 2023 00:44
@bryzettler bryzettler requested review from allenan, tyler-whitman, Perronef5, abhay and ChewingGlass and removed request for a team August 17, 2023 00:44
@bryzettler bryzettler merged commit be8e53a into main Aug 17, 2023
2 checks passed
@bryzettler bryzettler deleted the feature/spl-memo-on-delegate branch August 17, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants