-
Notifications
You must be signed in to change notification settings - Fork 0
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
MYSO-27: Allow delegation of on-chain quotes #583
Comments
ImplementationThis has been implemented through the following function: v2/contracts/peer-to-peer/LenderVaultImpl.sol Lines 370 to 387 in 93bf122
Moreover, a clearer segregation of duties has been introduced, ie while adding, updating and deleting on-chain quotes can be done both by the vault owner and the given on-chain quote delegate, any incrementing of the off-chain quote nonce can only be done by the vault owner: v2/contracts/peer-to-peer/QuoteHandler.sol Lines 142 to 143 in 93bf122
|
Additional ImprovementsIn order to streamline the process for on-chain quoting with delegates two additional convenience functions were added, ie: v2/contracts/peer-to-peer/QuoteHandler.sol Lines 128 to 139 in 93bf122
as well as: v2/contracts/peer-to-peer/QuoteHandler.sol Lines 111 to 126 in 93bf122
The rationale behind this is that if the on-chain quoting delegate is a multisig then approving a potentially complex onchain quote struct object via gnosis multisig can create significant friction. Hence, to make this easier the |
Description
Currently, only the vault owners themselves are authorized to produce on-chain quotes. However, to improve convenience and onboard more users, vault owners may want to delegate on-chain quoting to designated 3rd parties (similarly to off-chain quoting). In addition, even in case without 3rd party delegation, vault owners may want to separate their vault owner wallet from a wallet they use to produce on-chain quotes. This way they can store their vault owner key in a cold wallet which they only use from time to time and in parallel have a hot wallet for on-chain quoting which they use more frequently and only for on-chain quoting.
Recommendation
Allow vault owners to delegate on-chain quoting to an on-chain quoting account.
The text was updated successfully, but these errors were encountered: