Skip to content

Commit

Permalink
document ERC1155 behaviour of delegateMulti [N-01]
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Oct 17, 2023
1 parent e5cd692 commit 16a30fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/ERC20MultiDelegate.sol
Expand Up @@ -59,6 +59,12 @@ contract ERC20MultiDelegate is ERC1155, Ownable {
* @param sources The list of source delegates.
* @param targets The list of target delegates.
* @param amounts The list of amounts to deposit/withdraw.
*
* When calling this function, ERC1155 tokens are minted to the caller for the targets.
* As per the ERC1155 standard, the recipient should either be an Externally Owned Account
* (EOA), or a contract that implements `ERC1155Holder`. Failure to meet these conditions
* will result in the transaction reverting. This may cause unintended reverts for multi-signature
* wallets or other interacting contracts.
*/
function delegateMulti(
uint256[] calldata sources,
Expand Down

0 comments on commit 16a30fa

Please sign in to comment.