Commit ba49793c authored by ValarDragon's avatar ValarDragon
Browse files

Add better fee token safegaurds

parent 763908a9
Showing with 9 additions and 0 deletions
+9 -0
......@@ -54,6 +54,15 @@ func whitelistInitial(ctx sdk.Context, app *OsmosisApp) []types.FeeToken {
panic(err)
}
pool, poolExistsErr := app.GAMMKeeper.GetPool(ctx, poolId)
if poolExistsErr != nil {
continue
}
_, assetExistsErr := pool.GetPoolAsset(asset[1])
if assetExistsErr != nil {
continue
}
feeToken := types.FeeToken{
Denom: asset[1],
PoolID: poolId,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment