Skip to content

program: add admin_deposit #1591

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

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

program: add admin_deposit #1591

wants to merge 5 commits into from

Conversation

wphan
Copy link
Member

@wphan wphan commented Apr 25, 2025

No description provided.

Copy link
Member

@crispheaney crispheaney left a comment

Choose a reason for hiding this comment

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

youll wanna add anchor test or do test on devnet to make sure works correctly

total_withdraws_after,
market_index,
explanation: DepositExplanation::Reward,
transfer_user: Some(ctx.accounts.admin.key()),
Copy link
Member

Choose a reason for hiding this comment

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

might wanna check if this will confuse ui?

Copy link
Member Author

Choose a reason for hiding this comment

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

i think we can make this None, since explanation is already Reward

Copy link
Member Author

@wphan wphan Apr 28, 2025

Choose a reason for hiding this comment

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

unless we want to avoid creating a new Reward enum and do something confusing like transfer_user == admin to signify a reward.

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