Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
ba49793c
Commit
ba49793c
authored
3 years ago
by
ValarDragon
Browse files
Options
Download
Email Patches
Plain Diff
Add better fee token safegaurds
parent
763908a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/whitelist.go
+9
-0
app/whitelist.go
with
9 additions
and
0 deletions
+9
-0
app/whitelist.go
+
9
-
0
View file @
ba49793c
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets