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

Resize accounts #241

Merged
merged 11 commits into from
Sep 22, 2023
Merged

Resize accounts #241

merged 11 commits into from
Sep 22, 2023

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Sep 19, 2023

Resize user accounts to be smaller.
The position account goes from 100 positions to 20 positions.
The cost of a stake account goes from 0.22 SOL to 0.038 SOL.

@vercel
Copy link

vercel bot commented Sep 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2023 10:22am
staking-devnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2023 10:22am

@@ -17,8 +17,7 @@ jobs:
with:
node-version: "16.13"
- name: Npm install
working-directory: ./staking
run: npm install
run: npm ci
Copy link
Contributor Author

Choose a reason for hiding this comment

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

drive-by use npm ci

Copy link
Contributor Author

Choose a reason for hiding this comment

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

drive-by clean up package lock

@@ -417,7 +419,8 @@ pub mod tests {
position_data.write_position(i, &position).unwrap();
} else {
assert!(set.len() == MAX_POSITIONS);
assert!(position_data.reserve_new_index(&mut next_index).is_err())
assert!(position_data.reserve_new_index(&mut next_index).is_err());
next_index -= 1;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

drive-by fix this test

@guibescos guibescos merged commit 39974af into main Sep 22, 2023
8 checks passed
@guibescos guibescos deleted the resize-accounts branch September 22, 2023 12:30
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