Skip to content

Commit

Permalink
fix: fix 'airdrops108_of()' API in ic_panda_luckypool
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Oct 30, 2024
1 parent 752f6a0 commit ec71613
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ opt-level = 's'

[workspace.package]
edition = "2021"
version = "2.6.4"
version = "2.6.5"
repository = "https://github.com/ldclabs/ic-panda"
keywords = ["canister", "icp", "panda"]
categories = ["web-programming"]
Expand Down
4 changes: 2 additions & 2 deletions src/ic_panda_luckypool/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl State {
let mut airdrops: Vec<types::Airdrop> = Vec::new();
let mut ledger_airdropped = false;
let mut neurons_airdropped = false;
if let Some(list) = x.neurons.get(&user) {
if let Some(list) = x.ledger.get(&user) {
ledger_airdropped = !list.is_empty() && !x.ledger_todo_list.contains(&user);
list.iter()
.map(|a| types::Airdrop {
Expand All @@ -85,7 +85,7 @@ impl State {
})
.for_each(|x| airdrops.push(x))
};
if let Some(list) = x.ledger.get(&user) {
if let Some(list) = x.neurons.get(&user) {
neurons_airdropped = !list.is_empty() && !x.neurons_todo_list.contains(&user);
list.iter()
.map(|a| types::Airdrop {
Expand Down

0 comments on commit ec71613

Please sign in to comment.