I am meetmangukiya. I am a software developer, have been in DeFi and web3 space for over 3 years now. I also have familiarity with CoW protocol technicals.
Other/Misc.
Automated fee withdrawal for solver fee distribution.
Current process is automated but requires manual inspection of calldata everytime its ran by the core team members. It also requires the signers to sign the transactions everytime its ran. With the safe module contract code it won't require dilligence since the contract code will enforce it.
Create a Safe module that can be enabled on the Safe 0x423cEc87f19F0778f549846e0801ee267a917935 that accepts an array of tokens to be sold. The orders created must adhere to the aforementioned limitations (i.e. receiver).
The grant would specifically cover the work for handling automated fee collection. Precisely:
The Safe module is required to:
receiver (address), to-token (address), and keeper (address) set as immutable variables.drip function (callable only by keeper) for "dripping" protocol fees into the receiver's account by means of CoW Protocol orders.
Accepts an array of structs, with the struct being defined as:
struct SwapToken {
IERC20 sellToken;
uint256 sellAmount;
}
Creates an order selling the tokens from the GPv2Settlement contract to the receiver that is partially fillable and has buy amount 1.
Calls settle and triggers the orders via setPreSignature.
approve function to approve the vault relayer from the settlement contract.
revoke function to revoke approvals from the settlement contract to any contract.
Accepts an array of structs, with the struct being defined as:
struct Revocation {
IERC20 token;
address spender;
}
Approves the vault relayer on behalf of the settlement contract to spend 0.
self-sell script above.drip by the keeper EOA.The script is required to:
drip for all orders created in the previous step.. Will probably deliver this under 2 weeks.
5000 xDAI. Full payment can be made on delivery is fine.
0xd33d055ea52ec5a685995d40f19fa98d0744df0c
By submitting this grant application, I acknowledge and agree to be bound by the CoW DAO Participation Agreement and the CoW Grant Terms and Conditions.