You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current FundCommunityPoolFromModule function in pool-incentives should either be upstreamed to the SDK's distribution module, or we should derive the SDK address for this, and call distr.FundCommunityPool.
We derive the SDK address from a module name via:
addr := k.accountKeeper.GetModuleAddress(moduleName)
if addr == nil {
error or panic
}
The text was updated successfully, but these errors were encountered:
The FundCommunityPoolFromModule function as a whole. The problem we faced was we wanted to send coins to the community pool from a module account, and in this code we basically hackily did updates to the Distr.FeeTokens struct to handle this.
Oh true. I guess its a yak shaving question of do we want to get this into the SDK, versus just use more black box functionality here. (converting sending address to a normal address rather than module address)
The current FundCommunityPoolFromModule function in pool-incentives should either be upstreamed to the SDK's distribution module, or we should derive the SDK address for this, and call
distr.FundCommunityPool
.We derive the SDK address from a module name via:
The text was updated successfully, but these errors were encountered: