Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions stellar-lend/contracts/hello-world/src/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ pub fn vote(
// --- Flash loan protection: use snapshot-based voting power ---
let voting_power =
get_vote_power_with_delegation(env, proposal_id, &voter, &config.vote_token)?;
let token_client = TokenClient::new(env, &config.vote_token);
let voting_power = token_client.balance(&voter);

if voting_power == 0 {
return Err(GovernanceError::NoVotingPower);
Expand Down
Loading
Loading