Skip to content

A generic contract which accepts token deposits and issues LP tokens

Notifications You must be signed in to change notification settings

rigservice/LP-Token-Contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LP Token Contracts

This is a generic contract which takes in one set of tokens and issues LP tokens as a deposit.

This contract can be used as a base to customize other contracts.

Interface

# Deposit a number of tokens and receive LP tokens back.
deposit(nat numTokens)

# Redeem a number of LP tokens for underlying tokens.
redeem(nat numLpTokens)

# Update the contract's balance.
updateBalance(unit)

Building

# Pre-req install SmartPy (https://smartpy.io)

./compile.sh

About

A generic contract which accepts token deposits and issues LP tokens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.1%
  • Shell 2.9%