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
4003aaed
Commit
4003aaed
authored
3 years ago
by
ValarDragon
Browse files
Options
Download
Email Patches
Plain Diff
Fix bug in swap_msg logic
parent
9a272d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/gamm/types/msg_swap.go
+2
-1
x/gamm/types/msg_swap.go
with
2 additions
and
1 deletion
+2
-1
x/gamm/types/msg_swap.go
+
2
-
1
View file @
4003aaed
...
...
@@ -29,7 +29,8 @@ func (msg MsgSwapExactAmountIn) TokenInDenom() string {
return
msg
.
TokenIn
.
Denom
}
func
(
msg
MsgSwapExactAmountIn
)
TokenOutDenom
()
string
{
return
msg
.
Routes
[
0
]
.
GetTokenOutDenom
()
lastRouteIndex
:=
len
(
msg
.
Routes
)
-
1
return
msg
.
Routes
[
lastRouteIndex
]
.
GetTokenOutDenom
()
}
func
(
msg
MsgSwapExactAmountIn
)
TokenDenomsOnPath
()
[]
string
{
denoms
:=
make
([]
string
,
0
,
len
(
msg
.
Routes
)
+
1
)
...
...
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