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

Transfer ECOV via ecoswap program #10

Closed
6 tasks done
irene-bbox opened this issue Dec 29, 2022 · 0 comments
Closed
6 tasks done

Transfer ECOV via ecoswap program #10

irene-bbox opened this issue Dec 29, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@irene-bbox
Copy link
Contributor

irene-bbox commented Dec 29, 2022

Description

Transfer an spl-token (ECOV) via a unified Rust program which orchestrates both the transfer of SOL & the transfer of ECOV concurrently.

Tasks

  • user the .ts client to feed the right PDA to the Rust program
  • hard code into the Rust program the correct seed (only the seed is enough - no bump)
  • re-create the PDA inside the Rust program from seed
  • ensure the program callers are authorized callers
  • multiply amount of SOL by 10E-9 to convert from SOL Lamports to ECOV units
  • send right amount of ECOV to whomever got deducted of SOL
@irene-bbox irene-bbox self-assigned this Dec 29, 2022
@irene-bbox irene-bbox added bug Something isn't working enhancement New feature or request labels Dec 29, 2022
irene-bbox added a commit that referenced this issue Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant