I'm trying to send tokens to multiple wallets as soon as possible.
A. function can be run by only one wallet under onlyOwner
.
function batchTransfer(address[] memory receivers, uint256[] memory amounts)
external
onlyOwner
{
for (uint256 i = 0; i < receivers.length; i++) {
_transfer(receivers[i], amounts[i]);
}
}
B. function can be run by 5 wallets registerd under Authorized
.
function batchTransfer(address[] memory receivers, uint256[] memory amounts)
external
Authorized
{
for (uint256 i = 0; i < receivers.length; i++) {
_transfer(receivers[i], amounts[i]);
}
}
Which would be faster to send tokens to multiple wallets?
Using 5 wallets to run function B
at around the same time vs. Using one wallet to run function A
5 times.