Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,31 @@ The main function of Minter Hub Proxy is on-chain calculation of the amount of c

*Note*: you also can send an eth value to contract. In this case `tokenToSpend` and `maxAmountToSpend` must be equal to `0x0000000000000000000000000000000000000000` and `0`.

### Пример оборачивания транзы от 1inch api

Параметры для callAndTransferToChain:

- to - адрес контракта, который вызываем (приходит тебе через апи)
- data (приходит через апи)

// токен
- tokenFrom, tokenFromAmount - токен, для которого нужно сделать аппрув на адрес to.
- tokenTo - адрес токена, который мы в итоге депозитим в хаб. Контракт проверяет баланс до покупки и после покупки и разница и будет то, что мы купили. Эту разницу контракт отправляет в хаб.

- refundTo - адрес владельца монет

// данные для хаба
- destinationChain
- destination
- fee

### transaction-composer service

Wraps 1inch tx into HubProxy tx

https://github.com/MinterTeam/transaction-composer


## Deploy testnet

```shell
Expand Down