LiquidityPool.sol
- BRIDGE_ROLE
- Returns the bridge role
bytes32
- DEFAULT_ADMIN_ROLE
- Returns the default admin role
bytes32
- getBalance
- Returns the ETH balance of the LiquidityPool
uint256
- getERC20Balance
- Returns the ERC20 balance of the LiquidityPool
uint256
- getRoleAdmin
- Returns the admin role
bytes32
- hasRole
- Returns true if the input address has the specified role
bool
- role
bytes32
- account
address
- renounceRole
- Removes a role
bytes32
from an address
- supportsInterface
- Returns
bool
if the input interface is supported bytes4
- version
- Returns the current contract version
string
- addAdmin
- Adds the input address as an admin
Required role: admin
- addBridge
- Add the input address as L1AviBridge.sol
Required role: admin
- grantRole
- Grants the selected role to a user
Required role: admin
- role
bytes32
- account
address
- initialize
- Initializes SkyBridge
Required role: admin
- receiveERC20
- Receives ERC-20 tokens from an address with approval
- _token
address
- _amount
uint256
- removeAdmin
- Removes the admin role from an address
Required role: admin
- removeBridge
- Remove the input address as L1AviBridge.sol
Required role: admin
- revokeRole
- Removes the selected from from an address
Required role: admin
- role
bytes32
- address
address
- sendERC20
- Sends ERC20 tokens to the specified address
Required role: admin
- _to
address
- _token
address
- _amount
uint256
- sendETH
- Sends ETH to the specified address
Required role: admin
- _to
address
- _amount
uint256
- withdrawERC20
- Withdraws the selected ERC20 token
Required role: admin
- _token
address
- _amount
uint256
- sendETH
- Withdraws the selected amount of ETH
Required role: admin