hoprnet / hub-hoprnet-org

https://hub-hoprnet-org.vercel.app
0 stars 0 forks source link

Multicall funding of a safe with xDai and wxHOPR #24

Open mjadach-iv opened 1 year ago

camilovegag commented 1 year ago

This cannot be done, explanation can be found at hoprnet/hopr-admin#100

diegoalzate commented 1 year ago

We want something like multisend for safe. Could not find anything outside of safe that replicates this experience and is trusted and audited.

mjadach-iv commented 1 year ago

Q: MultiSend contract has been deployed at 0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526. Some utility functions on how to build those transactions can be found at https://github.com/safe-global/safe-contracts/blob/main/src/utils/multisend.ts

diegoalzate commented 1 year ago

Q: MultiSend contract has been deployed at 0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526. Some utility functions on how to build those transactions can be found at https://github.com/safe-global/safe-contracts/blob/main/src/utils/multisend.ts

Turns out if we want to use it from just a wallet we could use:

https://github.com/safe-global/safe-contracts/blob/main/contracts/libraries/MultiSendCallOnly.sol

Seems like this solution is for calls instead of delegatecalls. Right now what we can do if we want to use the multisend contract that has already been deployed is to also use another proxy contract so it can delegate the call.