-
Notifications
You must be signed in to change notification settings - Fork 75
CU-1ux3e25 CU-1q4x2t6 CU-1pdtjrz finalizing lending features #546
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7eea5a7
finalizing lending feautes
dzmitry-lahoda bd27932
liquidated! make validation more consistent, added oracle staking fea…
dzmitry-lahoda 097390d
fixed unsafe call
dzmitry-lahoda 7969238
added roundng error allowance
dzmitry-lahoda c6b5956
final validator fix
dzmitry-lahoda 1dd05f2
bugz
dzmitry-lahoda 769cbfe
version
dzmitry-lahoda 0485d39
Merge branch 'main' of github.com:composableFi/composable into dz/len…
seunlanlege 6a9f2b9
fix check_runtime diff
seunlanlege 8ce5f54
bump impl version
seunlanlege a8e1df1
Merge branch 'dz/lending-finalization-featurs' of github.com:Composab…
dzmitry-lahoda 87f79a1
fixed std dep
dzmitry-lahoda 5a15fb2
fmt
dzmitry-lahoda 1caa6c8
Merge branch 'main' into dz/lending-finalization-featurs
dzmitry-lahoda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,3 @@ | ||
| # Bonded Finance Pallet | ||
| # Overview | ||
|
|
||
| ## Overview | ||
|
|
||
| A simple pallet providing means of submitting bond offers. | ||
|
|
||
| ## Interface | ||
|
|
||
| This pallet implements the `BondedFinance` trait from `composable-traits`. | ||
|
|
||
| ## Dispatchable Functions | ||
|
|
||
| - `offer` ― Register a new bond offer, allowing use to later bond it. | ||
| - `bond` ― Bond to an offer, the user should provide the number of contracts a user is willing | ||
| to buy. On offer completion (a.k.a. no more contract on the offer), the `stake` put by the creator is refunded. | ||
| - `cancel_offer` ― Cancel a running offer, blocking further bond but not cancelling the | ||
| currently vested rewards. The `stake` put by the creator is refunded. | ||
| A simple pallet providing means of submitting bond offers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| cc e005bce405358673d3249e53d51e474d4b135bdf8f2b0b82f94f525c0efbdbf8 #Test failed: 190000000 * 1000 / 190500000 = 997375328083989501 != 1000 at frame/bonded-finance/src/tests.rs:404; minimal failing input: offer = BondOffer { beneficiary: 1, asset: BTC, bond_price: 1000000, nb_of_bonds: 381, maturity: BondDuration::Infinite, reward: BondOfferReward { asset: ETH, amount: 381000000, maturity: 1 } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.