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

Permissionless Pool Creation #322

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Permissionless Pool Creation #322

merged 3 commits into from
Jan 31, 2025

Conversation

tonylee08
Copy link
Collaborator

  1. Permissionless Creation
  2. Adding/removing stablecoins
  3. Updated VERSION constant

let _: &mut RegistryInner = self.load_inner_mut();
let stable_type = type_name::get<StableCoin>();
if (
!dynamic_field::exists_(
Copy link
Collaborator

Choose a reason for hiding this comment

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

instead of adding each stablecoin as a new dynamic field, what if we initialized a new Bag as a df and just added/removed from this bag? We can't change the registry struct, but this would standardize adding a stablecoin with adding a pool key

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently it's only one dynamic field stablecoinkey with the value as a vecset. Since there's no balance needed here like the balance manager, I think vecset will be better? Another idea is changing value into bag, and we can potentially resolve our vSUI/SUI stable problem (each asset added can correspond to a "base asset" like usdc or sui)

@tonylee08 tonylee08 merged commit 0040493 into main Jan 31, 2025
1 check passed
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