Skip to main content

LiquidityPool.sol

Read

  1. BRIDGE_ROLE
    • Returns the bridge role bytes32
  2. DEFAULT_ADMIN_ROLE
    • Returns the default admin role bytes32
  3. getBalance
    • Returns the ETH balance of the LiquidityPool uint256
  4. getERC20Balance
    • Returns the ERC20 balance of the LiquidityPool uint256
      • _token address
  5. getRoleAdmin
    • Returns the admin role bytes32
  6. hasRole
    • Returns true if the input address has the specified role bool
      • role bytes32
      • account address
  7. renounceRole
    • Removes a role bytes32 from an address
  8. supportsInterface
    • Returns bool if the input interface is supported bytes4
  9. version
    • Returns the current contract version string

Write

  1. addAdmin
    • Adds the input address as an admin Required role: admin
      • _admin address
  2. addBridge
    • Add the input address as L1AviBridge.sol Required role: admin
      • _bridge address
  3. grantRole
    • Grants the selected role to a user Required role: admin
      • role bytes32
      • account address
  4. initialize
    • Initializes SkyBridge Required role: admin
  5. receiveERC20
    • Receives ERC-20 tokens from an address with approval
      • _token address
      • _amount uint256
  6. removeAdmin
    • Removes the admin role from an address Required role: admin
      • _admin (address)
  7. removeBridge
    • Remove the input address as L1AviBridge.sol Required role: admin
      • _bridge address
  8. revokeRole
    • Removes the selected from from an address Required role: admin
      • role bytes32
      • address address
  9. sendERC20
    • Sends ERC20 tokens to the specified address Required role: admin
      • _to address
      • _token address
      • _amount uint256
  10. sendETH
    • Sends ETH to the specified address Required role: admin
      • _to address
      • _amount uint256
  11. withdrawERC20
    • Withdraws the selected ERC20 token Required role: admin
      • _token address
      • _amount uint256
  12. sendETH
    • Withdraws the selected amount of ETH Required role: admin
      • _amount uint256