Closed georgeroman closed 3 years ago
Ok, for anyone interested in how this worked out in the end, below is a sample code that works. However, it involves a new predicate transferERC20ExactTo
which gets the fee recipient via the extra data.
Tried to execute the test came across this error: Error: Returned error: VM Exception while processing transaction: revert Static call failed -- Reason given: Static call failed. I know this issue was closed but unable to figure out a solution. @georgeroman
Would the same function work for 1155 if i change the predicate functions
@georgeroman I assume you had to add a Solidity
function like the following in order to make it work:
function transferERC20ExactTo(bytes memory extra,
address[7] memory addresses, AuthenticatedProxy.HowToCall howToCall, uint[6] memory,
bytes memory data)
public
pure
{
...
correct?
Hello everyone! I'm looking into integrating fees within the orders. That is, the maker of an order involving selling an ERC20 asset is responsible for paying a list of fee recipients - these must be specified beforehand and signed by the maker so that they're enforced on-chain. I'm having a hard time composing the proper predicates for this. Are there any concrete examples of this?