-
Notifications
You must be signed in to change notification settings - Fork 22
MP-3299. Oak no. 8. #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MP-3299. Oak no. 8. #317
Conversation
// Get asset incentive for a denom. It should be available but just in case we don't unwrap | ||
let denom_idx = asset_incentives.get(&denom); | ||
if let Some(asset_incentive) = denom_idx { | ||
// Since we didn't track unclaimed rewards per collateral denom in v1 we add them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can send
these rewards to user wallets but I am not sure if this is good decision. For now I add unclaimed rewards from previous state to first user collateral denom.
764606a
to
561ef8c
Compare
Pushed fix for schema. Problem:
Even with specifying versions. Clean & build. Regenerating Cargo.lock etc - nothing helped.
|
.collect::<StdResult<HashMap<_, _>>>()?; | ||
v1_state::USER_UNCLAIMED_REWARDS.clear(deps.storage); | ||
|
||
for ((user, denom), user_asset_index) in user_asset_indices { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we hitting block gas limit here if there are too many users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be. We will see once we try to migrate the contracts on devnet
lgtm, pretty complex migration :) lets see about gas as theC00n brings up |
Oak no. 8. requires only version fix during migration but there is much more migration needed after neutron
incentives
changes.