OpenR&D Documentation
  • About
    • OpenR&D
      • Vision
      • Problem Statement & Innovation
      • Task progression
      • Supported chains
      • Glossary
      • Contact Us
    • Verified Contributors
  • Getting Started - Create Tasks
    • Create a task
      • Connect Wallet
    • Accept an application
    • Review a submission
    • Additional management
  • Getting Started - Perform tasks
    • Apply to task
      • Edit Profile
    • Take a task
    • Create a submission
    • Dispute Resolution
  • Verified Contributors Guide
    • Apply as Verified Contributor
    • Verified Contributor Score
      • Claiming
    • Governance
    • Departments
      • Dispute Department
      • Expert Department
  • Technical
    • Smart contracts
      • OpenR&D
        • Tasks
        • Escrow
        • Task Disputes
          • Smart Account Task Disputes Installer
        • Task Drafts
          • Smart Account Task Drafts Installer
        • RFPs
        • RFPEscrow
      • Verified Contributors
        • Verified Contributor
        • Tag Manager
        • Tag Voting
        • Trustless Management
        • Open Claiming
        • Departments
          • Department Factory
          • Smart Account Department Installer
      • Others
        • Smart Account
        • Crosschain Account
        • Trustless Actions
          • Optimistic Actions
          • Pessimistic Actions
    • Web interface
      • Indexer
      • Frontend
    • Audits
  • FAQs
  • Join Community
Powered by GitBook
On this page
  • Initialize
  • Code
  • Transfer
  • Inputs
  • Code
  • Auto-generated documentation
  1. Technical
  2. Smart contracts
  3. OpenR&D

Escrow

Initialize

Code

```solidity
function __Escrow_init() external {
    if (owner != address(0)) {
        revert AlreadyInitialized();
    }

    owner = msg.sender;
}
```

Transfer

Inputs

Token: IERC20 (address); the ERC20 contract to transfer tokens of.

To: address; the address to transfer tokens to.

Amount: uint256; the amount of tokens to transfer.

Code

```solidity
function transfer(IERC20 token, address to, uint256 amount) external {
    if (msg.sender != owner) {
        revert NotOwner();
    }

    token.transfer(to, amount);
}
```
PreviousTasksNextTask Disputes

Last updated 1 year ago

Auto-generated documentation