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

[x/gamm][StableSwap - Post V8] Add stableswap scaling factor governor #1460

Closed
Tracked by #1466
ValarDragon opened this issue May 10, 2022 · 1 comment · Fixed by #1499
Closed
Tracked by #1466

[x/gamm][StableSwap - Post V8] Add stableswap scaling factor governor #1460

ValarDragon opened this issue May 10, 2022 · 1 comment · Fixed by #1499
Labels
C:x/gamm Changes, features and bugs related to the gamm module. T:task ⚙️ A task belongs to a story

Comments

@ValarDragon
Copy link
Member

ValarDragon commented May 10, 2022

There is a desire to use stableswaps with yield accumulating assets. There are a few designs for how you could do this, but the simplest one seems to be to utilize the 'scaling factors' present in the Stableswap algorithm. If someone wanted to adjust the scaling factors according to yield, then this would achieve altering the price that its being stable around.

We should add a new field in the stableswap proto message, called scaling_factor_governor, which can be either blank, or an osmo address.

We should also add a new message called "MsgStableSwapAdjustScalingFactors", that can only be sent from the scaling_factor_governor address for the respective poolID. (if the address is blank, noone can send this message for the given poolID). This message adjusts the scaling factors to the provided ones.

It is intentioned that cosmwasm contracts could be used to set these in the future. There should also be a query for this, as it will be important for front-ends / users to know about a governor risk prior to LP'ing.

This is a post v8 feature

@daniel-farina daniel-farina moved this to Needs Review 🔍 in Osmosis Chain Development May 10, 2022
@p0mvn p0mvn changed the title Add stableswap scaling factor governor [x/gamm][StableSwap - Post V8] Add stableswap scaling factor governor May 10, 2022
@p0mvn p0mvn added T:task ⚙️ A task belongs to a story C:x/gamm Changes, features and bugs related to the gamm module. labels May 10, 2022
@vuong177 vuong177 assigned vuong177 and unassigned vuong177 May 10, 2022
@vuong177
Copy link
Contributor

Could i try doing that ?

Repository owner moved this from Needs Review 🔍 to Done ✅ in Osmosis Chain Development May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/gamm Changes, features and bugs related to the gamm module. T:task ⚙️ A task belongs to a story
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants