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

solana: token router transfer authority and more #65

Merged
merged 8 commits into from
Apr 4, 2024

Conversation

a5-pickle
Copy link
Contributor

@a5-pickle a5-pickle commented Apr 4, 2024

  • Added transfer authority, removing the requirement to pass in the order sender as a signer (he will be the owner of the sender token account)
  • Remove order sender as signer for place order instruction
  • Fix place order instruction by adding prepared by account
  • Adding composite accounts where appropriate
  • Fix tests and clean up associated SDK methods

Closes #56.
Closes #26.
Closes #37.

@a5-pickle a5-pickle force-pushed the solana/another-transfer-authority branch from fbe045e to 4ee154b Compare April 4, 2024 15:38
@a5-pickle a5-pickle marked this pull request as ready for review April 4, 2024 17:53
@a5-pickle a5-pickle requested a review from gator-boi April 4, 2024 18:24

#[account(token::mint = mint)]
// TODO: Do we add a restriction that the refund token account must be the same owner as the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would we be protecting against with this check?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's bad input by the client, then I don't think it's necessary.

@gator-boi gator-boi merged commit ec477a3 into main Apr 4, 2024
3 checks passed
@gator-boi gator-boi deleted the solana/another-transfer-authority branch April 4, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants