Skip to content

Commit

Permalink
add Deployment.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Frihat-dev committed Nov 3, 2023
1 parent 452930d commit 65d2ed4
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions scripts/Deployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Deployment process

The deployment process of Tapio core contracts consists of:
- 1) Deployment of the contract `TapETH`.
- 2) Deployment of the contract `WtapETH`.
- 3) Deployment of the contract `StableAsset`.
- 4) Deployment of the contract `WETH`.
- 5) Deployment of the contract `StableAssetApplication`.

## Deployment of TapETH

The deployment of TapETH requires:
- governance address

## Deployment of WtapETH

The deployment of WtapETH requires:
- TapETH address

## Deployment of StableAsset

The deployment of StableAsset requires:
- tokens : array of token pool addresses
- precisions: array of token pool precisions
- fees :[MINT_FEE, SWAP_FEE, REDEEM_FEE]
- TapETH address
- A
- exchangeRateProvider address
- exchangeRateTokenIndex

## Deployment of WETH

The deployment of WETH doesn't require inputs.


## Deployment of StableAssetApplication

The deployment of StableAssetApplication requires:
- WETH address


## Setup of Smart Contracts

- Add each stableSwap pool deployed by the contract StableAsset to the contract TapETH:

TapETH.addPool(stableSwap1.address)
TapETH.addPool(stableSwap2.address)

- Add each stableSwap pool deployed by the contract StableAsset to the contract StableAssetApplication:

StableAssetApplication.updatePool(stableSwap1.address, true)
StableAssetApplication.updatePool(stableSwap2.address, true)



0 comments on commit 65d2ed4

Please sign in to comment.