Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a7dc364
:construction: ($PALLET) Refactor salp - contribute & contribution
AllenPocketGamer Jul 10, 2021
31eae78
:construction: ($PALLET) Refactor withdraw
AllenPocketGamer Jul 10, 2021
2bde748
:construction: ($PALLET) Add refund-pool
AllenPocketGamer Jul 10, 2021
465841f
:construction: ($PALLET) Refactor salp - delete redeem-pool
AllenPocketGamer Jul 10, 2021
54879fd
:construction: ($PALLET) Refactor salp - delete useless code
AllenPocketGamer Jul 10, 2021
a5f1919
:construction: ($PALLET) Refactor salp - fix compile error
AllenPocketGamer Jul 10, 2021
2a29e36
:white_check_mark: ($PALLET) Add/Update/Remove unit-tests
AllenPocketGamer Jul 12, 2021
68a5a42
:white_check_mark: ($PALLET) Add the unit-tests of refund
AllenPocketGamer Jul 12, 2021
35314ac
:bug: ($PALLET) Fix bug on refund
AllenPocketGamer Jul 12, 2021
a6c55ff
:sparkles: ($PALLET) Refund can be called again after last refund is …
AllenPocketGamer Jul 12, 2021
408753c
:recycle: ($PALLET) Refactor contribution for auto unlock
AllenPocketGamer Jul 13, 2021
2e28b49
:construction: ($PALLET) Refactor salp - refact redeem
AllenPocketGamer Jul 13, 2021
aa84324
:recycle: ($PALLET) Complete the refactor of redeem
AllenPocketGamer Jul 14, 2021
4aafbad
:twisted_rightwards_arrows: ($PALLET) Fix the merge conflict from dev…
AllenPocketGamer Jul 14, 2021
ab8d0b9
:art: ($PALLET) Format salp
AllenPocketGamer Jul 14, 2021
ab510c4
:bug: ($PALLET) Fix the potential bug in refund-pool&redeem-pool
AllenPocketGamer Jul 14, 2021
e1af3d1
:sparkles: ($PALLET) Add unlock function
AllenPocketGamer Jul 14, 2021
7ec1884
:art: ($PALLET) Format code
AllenPocketGamer Jul 14, 2021
9d6971c
:bug: ($PALLET) Add check for the balance of redeem-pool
AllenPocketGamer Jul 14, 2021
933f942
:white_check_mark: ($PALLET) Add the unit-tests of unlock&redeem
AllenPocketGamer Jul 14, 2021
86448b9
:bug: ($PALLET) Fix the bug of release from redeem to bancor
AllenPocketGamer Jul 14, 2021
04d5b3d
:white_check_mark: ($PALLET) Add unit-tests for Hooks
AllenPocketGamer Jul 14, 2021
207ace2
:art: ($PALLET) Format code
AllenPocketGamer Jul 14, 2021
6aa053c
:wrench: ($PALLET) Move dependencies
AllenPocketGamer Jul 14, 2021
bacda39
:fire: ($PALLET) Remove unused config
AllenPocketGamer Jul 14, 2021
1750c28
:ambulance: ($PALLET) Quick fix mock error
AllenPocketGamer Jul 14, 2021
e8a571c
minor fix
ark930 Jul 14, 2021
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
Prev Previous commit
Next Next commit
🎨 ($PALLET) Format code
  • Loading branch information
AllenPocketGamer committed Jul 14, 2021
commit 7ec1884c940ab7c16593f5feb8a9932448b40c47
7 changes: 6 additions & 1 deletion pallets/salp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,12 @@ pub mod pallet {
let balance = T::MultiCurrency::unreserve(vsBond, &who, contributed);
ensure!(balance == Zero::zero(), Error::<T>::NotEnoughBalanceToUnlock);

Self::put_contribution(fund.trie_index, &who, contributed, ContributionStatus::Unlocked);
Self::put_contribution(
fund.trie_index,
&who,
contributed,
ContributionStatus::Unlocked,
);

Self::deposit_event(Event::<T>::Unlocked(who, index, contributed));

Expand Down