🦊
OCP
  • Interfaces
    • IOCPBridge
    • IOCPOmniTokenManager
    • IOCPool
    • IOCPoolFactory
    • IOCPReceiver
    • IOCPRouter
    • IOmniToken
    • IWETH
  • Libraries
    • Structs
    • Types
  • Entity
    • OCPool
    • OmniToken
  • OCPBridge
  • OCPOmniTokenManager
  • OCPoolFactory
  • OCPRouter
  • Example
    • ExampleDerivatives
    • ExampleDEX
    • ExampleOUSD
    • ExampleStaking
    • References
      • Vault
    • Mock
      • LZEndpoint
      • Token
      • MockUniswap
        • MockFactory
        • MockPair
        • MockToken
        • UQ112x112
  • Testnet Addresses
Powered by GitBook
On this page
  • token
  • router
  • constructor
  • withdraw
  1. Entity

OCPool

token

contract IERC20 token

router

address router

constructor

constructor(address _token) public

Initializes the contract setting the deployer as the initial owner.

Parameters

Name
Type
Description

_token

address

The address of the token contract.

withdraw

function withdraw(address _receiver, uint256 _amount) external

Transfers tokens from sender to receiver on the same chain.

Parameters

Name
Type
Description

_receiver

address

The address of the receiver.

_amount

uint256

The amount of tokens to transfer.

PreviousEntityNextOmniToken

Last updated 1 year ago