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

fix: set missing authority value #306

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,11 @@ func setUpgradeHandler(app *ElysApp) {
// dedicated x/consensus module.
baseapp.MigrateParams(ctx, baseAppLegacySS, &app.ConsensusParamsKeeper)

// FIXME: temporary code to fix usdc/elys pool weights
pool, found := app.AmmKeeper.GetPool(ctx, 3)
if found {
totalWeight := sdk.ZeroInt()
for i := range pool.PoolAssets {
pool.PoolAssets[i].Weight = sdk.NewInt(107374182400)
totalWeight = totalWeight.Add(pool.PoolAssets[i].Weight)
}
pool.TotalWeight = totalWeight
pool.PoolParams.FeeDenom = "ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65"
app.AmmKeeper.SetPool(ctx, pool)
// set authority value for all time based inflation
for _, item := range app.TokenomicsKeeper.GetAllTimeBasedInflation(ctx) {
// set the gov module address to the authority
item.Authority = authtypes.NewModuleAddress(govtypes.ModuleName).String()
app.TokenomicsKeeper.SetTimeBasedInflation(ctx, item)
}

return app.mm.RunMigrations(ctx, app.configurator, vm)
Expand Down
3 changes: 3 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ genesis:
- startBlockHeight: 1
endBlockHeight: 6307200
description: 1st Year Inflation
authority: elys10d07y265gmmuvt4z0w9aw880jnsr700j6z2zm3
inflation:
lmRewards: 9999999
icsStakingRewards: 9999999
Expand All @@ -348,6 +349,7 @@ genesis:
- startBlockHeight: 6307201
endBlockHeight: 12614401
description: 2nd Year Inflation
authority: elys10d07y265gmmuvt4z0w9aw880jnsr700j6z2zm3
inflation:
lmRewards: 9999999
icsStakingRewards: 9999999
Expand All @@ -357,6 +359,7 @@ genesis:
- startBlockHeight: 12614402
endBlockHeight: 18921602
description: 3rd Year Inflation
authority: elys10d07y265gmmuvt4z0w9aw880jnsr700j6z2zm3
inflation:
lmRewards: 9999999
icsStakingRewards: 9999999
Expand Down
46 changes: 0 additions & 46 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37481,42 +37481,6 @@ paths:
format: uint64
tags:
- Query
/elys-network/elys/accountedpool/params:
get:
summary: Parameters queries the parameters of the module.
operationId: ElysAccountedpoolParams
responses:
'200':
description: A successful response.
schema:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: >-
QueryParamsResponse is response type for the Query/Params RPC
method.
default:
description: An unexpected error response.
schema:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
'@type':
type: string
additionalProperties: {}
tags:
- Query
/elys-network/elys/amm/balance/{address}/{denom}:
get:
summary: Queries a list of Balance items.
Expand Down Expand Up @@ -82189,9 +82153,6 @@ definitions:
type: string
total_weight:
type: string
elys.accountedpool.Params:
type: object
description: Params defines the parameters for the module.
elys.accountedpool.QueryAllAccountedPoolResponse:
type: object
properties:
Expand Down Expand Up @@ -82316,13 +82277,6 @@ definitions:
type: string
total_weight:
type: string
elys.accountedpool.QueryParamsResponse:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: QueryParamsResponse is response type for the Query/Params RPC method.
elys.amm.PoolAsset:
type: object
properties:
Expand Down
10 changes: 9 additions & 1 deletion x/accountedpool/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion x/commitment/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading