Currency
Currency
CurrencyLibrary
This library allows for transferring and holding native tokens and ERC20 tokens
NativeTransferFailed
error NativeTransferFailed()
Thrown when a native transfer fails
ERC20TransferFailed
error ERC20TransferFailed()
Thrown when an ERC20 transfer fails
NATIVE
Currency NATIVE
transfer
function transfer(Currency currency, address to, uint256 amount) internal
balanceOfSelf
function balanceOfSelf(Currency currency) internal view returns (uint256)
equals
function equals(Currency currency, Currency other) internal pure returns (bool)
isNative
function isNative(Currency currency) internal pure returns (bool)
toId
function toId(Currency currency) internal pure returns (uint256)
fromId
function fromId(uint256 id) internal pure returns (Currency)