Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add and remove hooks * hook file * query hooks * admin -> owner * add owner and manager roles * owner and manager can update hooks * clippy warnings * cargo fmt * cargo schema * cargo fmt * properly wrap hooks * update cargo for new file * wip * full contract no tests * cargo fix * handle update rewards error * native reward tests * cw20 reward tests * owner and manger dual admins * test for edge cases when adding funds * import library feature stake-cw20 * cargo schema * add response schemas * test for insantiating rewards before any tokens are staked * add debugging info to get pending rewards response * return error if rewards not claimable * scale before dividing and do computations in u256 * lint: run cargo fmt + clippy * rf: cleanup staking rewards contract * fix: contract name * fix: branch cleanup + fix multiplication overflow * fix: add unwrap for add hook helper in tests * fix: lint with clippy * addr -> string * tests break when rewards are over * fix broken tests * add attributes to instatiation * switch strings to addresses in msgs * use zero as default * better addr validation * better fund validationf * respond to comment, better divide by zero validation * clean * remove debugging prints * add reward duration to instantiation msg * verify contract is a staking contract at instantiation * cargo fmt * cargo schema Co-authored-by: Vernon Johnson <vtj2105@columbia.edu> Co-authored-by: Vernon Johnson <25010543+verminator23@users.noreply.github.com>
- Loading branch information