Skip to content

0xcrypto102/SPLPayment

Repository files navigation

Project Description

Smart contract

  • Initialize the contract with SPL token address, token vault address, owner address, max deposit amount
  • update the max deposit amount with owner permission
  • update the owner address with owner permission
  • deposit SPL token
  • withdraw SPL token

Unit-test

  • Initialize contract
  • update max amount
  • update owner
  • deposit
  • withdraw
  • check the balance of SPL token
  • track the deposited SPL token amount and stake & withdraw time
  • Receive the deposit and withdraw events

How to build

anchor build

How to deploy

anchor deploy

How to test

anchor run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published