Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
fdc7e576
Commit
fdc7e576
authored
2 years ago
by
roman
Browse files
Options
Download
Email Patches
Plain Diff
try fixing sim
parent
37b40008
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/gamm/simulation/sim_msgs.go
+1
-3
x/gamm/simulation/sim_msgs.go
with
1 addition
and
3 deletions
+1
-3
x/gamm/simulation/sim_msgs.go
+
1
-
3
View file @
fdc7e576
...
...
@@ -277,9 +277,7 @@ func deriveRealMinShareOutAmt(ctx sdk.Context, tokenIn sdk.Coins, pool types.Tra
func
getRandPool
(
k
keeper
.
Keeper
,
sim
*
simtypes
.
SimCtx
,
ctx
sdk
.
Context
)
(
uint64
,
types
.
TraditionalAmmInterface
,
sdk
.
Coin
,
sdk
.
Coin
,
[]
string
,
string
,
error
)
{
// select a pseudo-random pool ID, max bound by the upcoming pool ID
// pool_id := simtypes.RandLTBound(sim, k.GetNextPoolId(ctx))
// TODO: SIMULATOR figure out how to approach this. Idea: keep pool count index in state
pool_id
:=
uint64
(
0
)
pool_id
:=
simtypes
.
RandLTBound
(
sim
,
k
.
GetPoolCount
(
ctx
))
pool
,
err
:=
k
.
GetPoolAndPoke
(
ctx
,
pool_id
)
if
err
!=
nil
{
return
0
,
nil
,
sdk
.
NewCoin
(
"denom"
,
sdk
.
ZeroInt
()),
sdk
.
NewCoin
(
"denom"
,
sdk
.
ZeroInt
()),
[]
string
{},
""
,
err
...
...
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