Skip to content

Commit

Permalink
Merge pull request #82 from gosh-sh/l2_update_contracts
Browse files Browse the repository at this point in the history
In L2, the use of ERC20 was added to the User Guide
  • Loading branch information
Oxydixi authored Dec 1, 2023
2 parents e0b93d7 + 8ff0c64 commit 37faa4c
Show file tree
Hide file tree
Showing 24 changed files with 1,216 additions and 2,147 deletions.
299 changes: 0 additions & 299 deletions docs/ethereum-L2.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/ethereum-L2/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Contract `Checker.sol` receives an external message from `Proposer` with Ethereu


* **RootTokenContract** - is a smart contract on GOSH that manages user withdrawals. It receives TIP-3 transactions, verifies them and adds transactions to the counter index.
Also it deploys the contract TIP3 wallet contract (`TONTokenWallet.cpp`) and sends wrapped tokens there.
Also it deploys the contract TIP-3 wallet contract (`TONTokenWallet.cpp`) and sends wrapped tokens there.

* **TONTokenWallet** - is a custom TIP-3 contract that runs in GOSH Masterchain and in addition to standard functions has `burnTokens` method. It is called when WETH needs to be transferred to Ethereum Blockchain. Burn is proven to ELOCK contract in order to allow for ETH native token withdrawals.

Expand All @@ -110,7 +110,7 @@ Also it deploys the contract TIP3 wallet contract (`TONTokenWallet.cpp`) and sen
### **for deposit to GOSH**


When transferring assets to GOSH, `checker.sol` sends the transfer amount and coefficients `a` and `b` to the `RootTokenContract.cpp` and it calculates the commission amount. Then mints the wrapped tokens to the user TIP3-wallet minus the commission. And the commission is sent to the wallet by the commission in GOSH.
When transferring assets to GOSH, `checker.sol` sends the transfer amount and coefficients `a` and `b` to the `RootTokenContract.cpp` and it calculates the commission amount. Then mints the wrapped tokens to the user TIP-3 wallet minus the commission. And the commission is sent to the wallet by the commission in GOSH.


calculated as:
Expand Down
Loading

0 comments on commit 37faa4c

Please sign in to comment.