Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DripFeed - Time-Locked USDC Allowance Contract on Arc Testnet

A live time-locked USDC allowance contract deployed on Arc Testnet for testing interval-based payments and helping improve the Arc Network experience.

About This Project

DripFeed lets a user deposit USDC and set a recipient who can withdraw a fixed amount at regular intervals. It tests:

  • Time-based smart contract logic
  • USDC ERC20 transfers
  • Allowance management and cancellation
  • Multi-user interaction on Arc

Live Contract

  • Network: Arc Testnet
  • Contract Address: 0xdB41326B36d684E589F030fcB088e065d8bBd5BE
  • USDC Token: 0x3600000000000000000000000000000000000000
  • Deployed By: 0x5EfCAdfF54213eAfDAbb95c6e970Da425D3F7EEF

How to Interact

Prerequisites

  • Arc Testnet wallet with test USDC

Create an Allowance

  1. Approve DripFeed to spend your USDC
  2. Call createAllowance(recipient, amountPerInterval, interval)

Withdraw as Recipient

  • Call drip(sender) to withdraw available USDC

Cancel

  • Call cancelAllowance(recipient) to cancel and refund remaining USDC

Contract Functions

  • createAllowance(address recipient, uint256 amountPerInterval, uint256 interval) - Create allowance
  • drip(address sender) - Withdraw available USDC
  • cancelAllowance(address recipient) - Cancel and refund
  • availableToWithdraw(address sender, address recipient) - Check available
  • getContractBalance() - Contract's USDC balance
  • allowances(address sender, address recipient) - Allowance details

Features

  • Time-locked USDC allowances
  • Secure ERC20 transfers
  • Cancellation with refund of remaining balance
  • Prevent duplicate allowances
  • Prevent self-allowance

Why Test on Arc?

By using DripFeed on Arc Testnet, you're helping test time-based payment logic, identify issues, and contribute to Arc Network development.

License

MIT

About

Time-locked USDC allowance contract on Arc Testnet

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages