-
Notifications
You must be signed in to change notification settings - Fork 86
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
Feat: Liquidity pools inter domain tranche token transfer #1860
Conversation
Should we start adding test to the pallet itself now? ^^ Integration test will be hard until the LP integration test is not done. |
@@ -1,99 +0,0 @@ | |||
// Copyright 2023 Centrifuge Foundation (centrifuge.io). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these pallets removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused config, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that's right! I forgot to remove those files after migrating them 🤦🏻♂️. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM! We could add a simple integration test which ensures the 3 hop of tranche token amounts via events.
tranche_id, | ||
receiver, | ||
amount, | ||
)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the simplicity of this feature!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with adding tests later and verifying this change on Demo. Code LGTM!
Description
The PR allows to send tranche tokens from
Domain A
toDomain B
by relaying the message overCentrifuge
. The Solidity side of the LP logic already is capable of doing so, this enables this feature on the chain itself.NOTE:
Pushing this change before the RU as the DYF pool will most likely need that feature.
Changes and Descriptions
DomainAccountToDomainAddress
converter to ease conversion from message to typeDomainAccount
toT::DomainAddressToAccountId::convert(receiver)
→ for local receiver this will just be the normal account they choose to send to
→ for remote receiver this will be a derived account that temporarily holds the tokens
Checklist: