Content pfp
Content
@
0 reply
0 recast
0 reaction

Stephan pfp
Stephan
@stephancill
what measures does syndicate have in place to prevent wallets from being drained when calling arbitrary contracts? struggling to find information about this on https://docs.syndicate.io
2 replies
0 recast
2 reactions

Will Papper pfp
Will Papper
@will
Hey @stephancill, currently we simulate the TX to ensure that gas estimates are correct and that failed transactions due to gas issues won't go through. We also offer a contract allowlist if you want to restrict the contracts that can be called. If you're worried about malicious contracts using up all available gas without running out of gas (i.e. to grief a successful transaction), I'd recommend a wrapper contract that sets a custom gas limit and forwards the transactions to the arbitrary contract using DELEGATECALL. That would give you safety onchain, ensuring that transactions that exceed the gas limit would fail in simulation and not use up gas onchain
1 reply
0 recast
1 reaction

Stephan pfp
Stephan
@stephancill
thanks for the information! you're speaking about gas, but i'm actually also looking to execute transactions that transfer eth (e.g. minting an nft on zora) is that possible with syndicate today?
1 reply
0 recast
1 reaction

Will Papper pfp
Will Papper
@will
You can do this, we have an endpoint that we can manually enable for you that supports this (it's the same as sendTransaction but it supports a value param) The other way to do so is to handle it in the wrapper contract, if you're already using one anyway. That's what the FC team did to add support for Zora minting using Frames via our APIs https://github.com/horsefacts/base-mint-with-warps (Uses our Frame API but our Transaction API is the same functionality, just greater flexibility)
0 reply
0 recast
1 reaction