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
b552bab6
Unverified
Commit
b552bab6
authored
2 years ago
by
khanh-notional
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix GetModuleToDistributeCoins (#2957)
parent
7f62b6da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/incentives/keeper/distribute.go
+1
-1
x/incentives/keeper/distribute.go
with
1 addition
and
1 deletion
+1
-1
x/incentives/keeper/distribute.go
+
1
-
1
View file @
b552bab6
...
...
@@ -386,7 +386,7 @@ func (k Keeper) checkFinishDistribution(ctx sdk.Context, gauges []types.Gauge) {
// GetModuleToDistributeCoins returns sum of coins yet to be distributed for all of the module.
func
(
k
Keeper
)
GetModuleToDistributeCoins
(
ctx
sdk
.
Context
)
sdk
.
Coins
{
activeGaugesDistr
:=
k
.
getToDistributeCoinsFromIterator
(
ctx
,
k
.
ActiveGaugesIterator
(
ctx
))
upcomingGaugesDistr
:=
k
.
getToDistributeCoinsFromIterator
(
ctx
,
k
.
UpcomingGaugesIterator
AfterTime
(
ctx
,
ctx
.
BlockTime
()
))
upcomingGaugesDistr
:=
k
.
getToDistributeCoinsFromIterator
(
ctx
,
k
.
UpcomingGaugesIterator
(
ctx
))
return
activeGaugesDistr
.
Add
(
upcomingGaugesDistr
...
)
}
...
...
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