Skip to content

Commit

Permalink
Update TaikoToken.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jul 4, 2024
1 parent c25719c commit 08c96d3
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/protocol/contracts/tko/TaikoToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,4 @@ contract TaikoToken is TaikoTokenBase {
// Mint 1 billion tokens
_mint(_recipient, 1_000_000_000 ether);
}

/// @notice Batch transfers tokens
/// @param recipients The list of addresses to transfer tokens to.
/// @param amounts The list of amounts for transfer.
/// @return true if the transfer is successful.
function batchTransfer(
address[] calldata recipients,
uint256[] calldata amounts
)
external
returns (bool)
{
if (recipients.length != amounts.length) revert TT_INVALID_PARAM();
for (uint256 i; i < recipients.length; ++i) {
_transfer(msg.sender, recipients[i], amounts[i]);
}
return true;
}

function delegates(address account) public view virtual override returns (address) {
// Special checks to avoid reading from storage slots
if (account == _TAIKO_L1 || account == _ERC20_VAULT) return address(0);
else return super.delegates(account);
}
}

0 comments on commit 08c96d3

Please sign in to comment.