Skip to content

Commit

Permalink
Merge pull request #160 from ctindogaru/fix_proposal_bond
Browse files Browse the repository at this point in the history
Make attached deposit for adding a proposal equal to the proposal bond
  • Loading branch information
TrevorJTClarke authored Apr 22, 2022
2 parents e6ce2d8 + 7a4ed0e commit f1b0724
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sputnikdao2/src/proposals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,10 @@ impl Contract {
// 0. validate bond attached.
// TODO: consider bond in the token of this DAO.
let policy = self.policy.get().unwrap().to_policy();
assert!(
env::attached_deposit() >= policy.proposal_bond.0,

assert_eq!(
env::attached_deposit(),
policy.proposal_bond.0,
"ERR_MIN_BOND"
);

Expand Down

0 comments on commit f1b0724

Please sign in to comment.