transferFrom
, transfer
or approve
methodstrue
when the transfer suceeds.uint96
, for example, special care should be taken to be sure that we remain able to rebalance the token away given its decimals (if, say, 100x the max allowance value could be locked in the Index, we'd have to execute 100 trades to rebalance it away, and that could be problematic)transferFrom
or transfer
methods DO NOT return a value, we don't care if the transfer doesn't revert if it fails, since the balance is checked independently (transferFrom
in ExplicitERC20.sol
)_validatePreTradeData
)payProtocolFeeFromSetToken
doesn't do transfers of zeropayProtocolFeeFromSetToken
if the fee recipient is the null address. (other than to have the total supply of the token more closely match the circulating supply, but it doesn't make a difference)