Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

176 bidding pallet intergrate share distributor pallet #178

Merged
merged 15 commits into from
Sep 30, 2022

Conversation

letodunc
Copy link
Contributor

Call share distributor from bidding pallet
Added complementary functions in housing fund to manage unreservation fund and purchase operation
Updated Onboarding::do_buy() with housing fund to manage fund unreserved for the purchase in Housing Fund
Updated Share_Distributor::create_virtual() with housing fund purchase process to keep transaction history and stay up to date
Updated tests to cover the updates

@letodunc letodunc added the enhancement New feature or request label Sep 28, 2022
@letodunc letodunc added this to the M3 milestone Sep 28, 2022
@letodunc letodunc requested review from ilhanu and ndkazu September 28, 2022 22:17
@letodunc letodunc self-assigned this Sep 28, 2022
@letodunc letodunc linked an issue Sep 28, 2022 that may be closed by this pull request
Copy link
Contributor

@ndkazu ndkazu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any modification of Share_Distributor::create_virtual() as stated in the PR manifest: are you still working on it?

@letodunc
Copy link
Contributor Author

letodunc commented Sep 29, 2022

I don't see any modification of Share_Distributor::create_virtual() as stated in the PR manifest: are you still working on it?

No, but the change wasn't onboarded in the commit. Now you should see it.

Copy link
Member

@ilhanu ilhanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good, small changes requested

pallets/bidding/src/lib.rs Show resolved Hide resolved
pallets/bidding/src/lib.rs Outdated Show resolved Hide resolved
pallets/housing_fund/src/lib.rs Show resolved Hide resolved
@letodunc letodunc requested review from ilhanu and ndkazu September 29, 2022 14:46
@codecov-commenter
Copy link

Codecov Report

Merging #178 (9e22410) into main (b613c4a) will increase coverage by 1.34%.
The diff coverage is 96.01%.

@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
+ Coverage   76.81%   78.16%   +1.34%     
==========================================
  Files          49       49              
  Lines        4124     4378     +254     
==========================================
+ Hits         3168     3422     +254     
  Misses        956      956              
Impacted Files Coverage Δ
pallets/bidding/src/mock.rs 85.71% <ø> (+7.14%) ⬆️
pallets/housing_fund/src/lib.rs 91.11% <ø> (+1.11%) ⬆️
pallets/onboarding/src/lib.rs 88.79% <ø> (ø)
pallets/voting/src/lib.rs 79.62% <75.00%> (ø)
pallets/housing_fund/src/functions.rs 86.72% <83.78%> (-1.59%) ⬇️
pallets/bidding/src/lib.rs 85.06% <84.00%> (+5.96%) ⬆️
pallets/bidding/src/tests.rs 99.79% <100.00%> (-0.21%) ⬇️
pallets/housing_fund/src/structs.rs 100.00% <100.00%> (ø)
pallets/housing_fund/src/tests.rs 100.00% <100.00%> (ø)
pallets/onboarding/src/functions.rs 88.31% <100.00%> (+0.15%) ⬆️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ilhanu ilhanu merged commit d731533 into main Sep 30, 2022
cuteolaf pushed a commit to cuteolaf/fair-squares that referenced this pull request Oct 7, 2022
)

* updated tests with the call periodicity of process_onboarded_asset()

* added process_finalised_asset, updated tests

* added unreservation of reserved funds in Housing fund

* added share distributor pallet in bidding pallet

* updated test setup

* added functions in housing fund, updated tests

* added unreserved fund in Housing fund for asset transfer

* updated tests in share distributor

* added call to share distributor in bidding pallet

* updated investor list creation conditions

* added omitted updates

* added spelling fix and renaming

additional Commits in this PR. 
* added event on house status change in Onboarding pallet
* added bypass filter on dispatch calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Bidding pallet - Intergrate Share distributor pallet
4 participants