Skip to content

💱 Some swap of TRC10 to TRC20 token. Only in one way.

Notifications You must be signed in to change notification settings

pironmind/swap_trc10-to-20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💱 Swap TRC10 to TRC20 token

One way swap of TRC10 to TRC20 token.

Before swap you need set exchange rate via "setExchangeRate()", by default rate is 1. For successful swap owner require to do deposit TRC20 to the contract.

Constructor - 1 arg. set TRC10 id (number), 2 arg. set TRC20 address (string)

How to swap?

  1. call func. "depositTrc10"
  2. call func. "swap"
  3. call func. "withdrawTrc20:

About

💱 Some swap of TRC10 to TRC20 token. Only in one way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published