feat: close #826 #827 #828 #829 — cross-chain identity, collateral baskets, boost curves, amortization schedules - #884
Merged
Merged
Conversation
… — cross-chain identity, collateral baskets, boost curves, amortization schedules
|
Hey @Spycall! 👋 It looks like this PR isn't linked to any issue. If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g.,
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Closes #826,
Closes #827,
Closes #828,
Closes #829
Changes
Issue #826 — Gate property issuance on cross-chain identity verification
identity_registrystorage field +set_identity_registrysetter toproperty-managementverify_onboarding_cross_chain— XCM-style mock callingComplianceCheckertraitregister_propertymessage gated on cross-chain attestationregister_property_fails_without_identity_registrycovers unattested pathIssue #827 — Multi-token collateral baskets
collateral_basket: Vec<(TokenId, u128)>field toLoanListingcreate_loan_listingto acceptcollateral_basketparametercreate_loan_listing_with_collateral_basket,create_loan_listing_with_empty_basketIssue #828 — Yield boosters for long-term staking
BoostCurveenum (Linear|Concave|Convex) withapply()methodsqrt_u128helper for concave curvemultiplier_with_curve()+ratio()methods onLockPeriodboost_curvestorage field + governance parameter (ParamKind::BoostCurve)calculate_rewardsandcalculate_projected_rewardsIssue #829 — Variable amortization schedules
Scheduleenum (Bullet|Annuity|Linear|Custom) withinstallment()computationschedule_type: Schedulefield toPaymentSchedulecreate_payment_schedulemessage +get_payment_schedule_by_loanqueryFiles Changed
contracts/lending/src/lib.rs— Schedule enum, PaymentSchedule integration, multi-token collateralcontracts/lending/src/test.rs— 8 new ink! tests for Support multi-token collateral baskets in loan marketplace #827 and Variable amortization schedules in lending #829contracts/property-management/src/lib.rs— Identity registry, cross-chain verification, property registration gatecontracts/staking/src/lib.rs— BoostCurve storage, governance, reward calc integrationcontracts/staking/src/types.rs— BoostCurve enum, multiplier_with_curve, ratio, 13 unit testsNote: Cargo was unavailable in the dev environment — please run
cargo check --workspace && cargo test --workspacebefore merging to confirm compilation and test pass.