Replies: 6 comments 15 replies
-
Right now if the bot's private key is compromised then all funds can be stolen so we can't keep a decent amount of DAI on the bot's address. We can add a Gnosis Safe multisig which requires 2 signatures (bot + admin) to transfer a bounty hunter's reward. With Gnosis Safe the flow will be the following:
Pros:
Cons:
If the proposed approach is fine I can create a demo. |
Beta Was this translation helpful? Give feedback.
-
I've checked the gnosis safe API and it has a drawback with ordered nonces. It means that if the bot proposes a transaction from the gnosis safe and admin signs it, then all bounty hunters have to withdraw their payouts in a strict order which is quite an unpleasant UX. We can try gnosis safe's relay kit and maintain the payouts order on the bot's side (server). So the flow will be the following:
So this way:
|
Beta Was this translation helpful? Give feedback.
-
If the private key is leaked (which is expected to be used for permit2 bounty rewards <100$) then the only way to be 100% sure that everything is gonna be fine is to use multisig (like gnosis safe, i.e. manually approve even small payouts) What options we have:
|
Beta Was this translation helpful? Give feedback.
-
Update regarding the gnosis safe Gnosis Safe Relay Kit is in its early alpha. Right now it is just a single js file with 100 lines of code. The whole relay kit is basically a wrapper around the @gelatonetwork/relay-sdk package. I managed to relay transactions (not to Gnosis Safe) to other contracts using a pure I've already asked the Gnosis Safe team of how to make the relay kit working here and here. So I will switch to other tasks while I'm waiting for the response. |
Beta Was this translation helpful? Give feedback.
-
@rndquu any updates with this research? |
Beta Was this translation helpful? Give feedback.
-
Auth kit: could be used in the ubiquity dollar's Onramp kit: not ready for production Relay kit: uses Gelato Network under the hood. Ready for production. We actually have plans to use it as a part of #274 We could close this discussion because we already have plans to use the relay kit which is the only safe's kit applicable to our project right now |
Beta Was this translation helpful? Give feedback.
-
This has everything we discussed as well as fiat onramping @rndquu
https://twitter.com/safe/status/1630946971002507265?s=46&t=fLzoRySawhTzZHfr3g9x9A
Beta Was this translation helpful? Give feedback.
All reactions