Please enable JavaScript.
Coggle requires JavaScript to display documents.
Smart contract flow (ORC20), Swap flow - Coggle Diagram
Smart contract flow (ORC20)
START
OmniaSwap contract deployed
no
END
ORC-20 issuance
in constructor
49% to OmniaSwap contract
51% locked (for a month?)
transfers in contructor hppened?
no
yes
(liquidty providing)
Swap currencies for ORC-20
use oracles price feeds
list of
allowed currencies
ORC20 available
needs to be upgradeable
Swap flow
Swap contracts needs
49%
ETH to process transfer
START
inputAmount > 0
yes
InputToEth()
OutputToEth()
outputAmount = ERC20 / SRC20
enough in LP/smart contract?
yes
Approve ERC20
1 more item...
no
not enough token available
no
not enough
input token