Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| EXTEND_ESLINT=true |
| const my_share = inputRedeem * 10 ** reserve_asset_decimals / fund_state.shares_supply; | |
| const reserve_amount = Math.floor(my_share * fund_balance?.[reserve_asset]); | |
| const t1_amount = Math.floor(my_share * p1Balance); | |
| const exchange = t1_amount && $get_exchange_result(obj); | |
| const you_get_in_full_units = (reserve_amount - exchange.reserve_needed - (reserve_asset === "base" ? 4000 : 0)); | |
| const you_get = you_get_in_full_units / 10 ** reserve_asset_decimals; | |
| const fee_percent = (exchange.fee / you_get_in_full_units) * 100; |
| { | |
| "data": { | |
| "unstable_mc_joints": [ | |
| { | |
| "unit": { | |
| "version": "3.0t", | |
| "alt": "2", | |
| "messages": [ | |
| { | |
| "app": "payment", |