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

Seat eviction: authorized delegate #8

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

joebuild
Copy link

@joebuild joebuild commented May 31, 2024

Add an authorized delegate for evicting traders who have no locked funds. The authorized delegate is based on the seat_manager_authority key, we create a PDA derived from: seat_manager_authority + delegate. If the PDA exists, then the delegate has permissions.

The core permission logic is here:
Screenshot 2024-06-04 at 5 44 35 PM

@joebuild joebuild force-pushed the joe/eviction-authorized-delegate branch from 07de726 to 6313918 Compare June 3, 2024 21:21
src/lib.rs Show resolved Hide resolved
@jarry-xiao jarry-xiao changed the title [WIP] Seat eviction: authorized delegate Seat eviction: authorized delegate Jun 6, 2024
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