near-daos / sputnik-dao-contract

Smart contracts for https://app.astrodao.com
https://astrodao.com/
MIT License
108 stars 77 forks source link

Fix a glitch where bounty bond is not returned #80

Closed ctindogaru closed 2 years ago

ctindogaru commented 2 years ago

If the bounty is claimed by someone and they give up on the bounty, then the bounty bond is returned to the claimer.

However, if the bounty is claimed by someone and they successfully complete it, the bounty bond is never returned to the claimer and the bond remains locked in the DAO.

Fixes https://github.com/near-daos/sputnik-dao-contract/issues/19 and https://github.com/near-daos/sputnik-dao-contract/issues/27