Skip to content

Conversation

@taiki1frsh
Copy link
Contributor

close #64

use crate::msgs::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};
use crate::query::bonus_windows::query_bonus_windows;
use crate::query::distribution_amount::query_distribution_amount;
// use crate::query::distribution_amount::query_distribution_amount;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could remove this commented code

to_binary(&query_distribution_amount(deps, bonus_window_id)?)
}
} => to_binary(&query_vault_share_staking(deps, bonus_window_id, vault_id, address)?),
// QueryMsg::DistributionAmount { bonus_window_id } => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR ready for review? I see some commented codebase

deps
}

// #[test]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this line?

query_bonus_window(deps.as_ref(), 0).unwrap_err();

let voted_vault = query_voted_vaults(deps.as_ref(), 0).unwrap_err();
// assert_eq!(voted_vault.len(), 2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check has been disabled for some reason

// todo!()
// // let resp = DistributionAmountResp {};
// // Ok(resp)
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whole code seems to be commented for this file

@@ -1,5 +1,5 @@
pub mod bonus_windows;
pub mod distribution_amount;
// pub mod distribution_amount;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remoce this code if not used?

// bonus_window_id: u64,
// for_all: Vec<Distribution>,
// for_winners: Vec<Distribution>,
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this one as well?

});
send_msgs.push(send_msg);
}
Ok(send_msgs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it fine to distribute the reward on a single message? I think it would overflow the block gas limit if the number of users are more than 1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants