Skip to content

Instantly share code, notes, and snippets.

@srghma
Last active November 21, 2021 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srghma/e10ce828dff2ea7a97cfead50d61d317 to your computer and use it in GitHub Desktop.
Save srghma/e10ce828dff2ea7a97cfead50d61d317 to your computer and use it in GitHub Desktop.
Near DeFi
  • Uniswap

    automated

    Ключевые функции Uniswap – Swap и Pool.

    Swap позволяет торговать ETH и ERC-20 (Ethereum Request for Comments) токенами.

    Благодаря Pool пользователи биржи получают вознаграждение за счет предоставления ликвидности.

    ERC20 token pair (underlying and basis)?????

    TODO: paried contracts?

  • PancakeSwap

    Binance Smart Chain (BSC)

    BEP-20 (Binance Chain Evolution Proposal) – це стандарт токенів на Binance Smart Chain, який розширює токени ERC-20 та BEP-2

    BEP-20 and BEP-2 work on different networks

    Лотереи – отличительная черта PancakeSwap от прочих децентрализованных бирж. Лотерея проходит каждые 6 часов. Участие в лотерее дает возможность выиграть определенную сумму (до 50% от размера лотерейного пула)

  • SushiSwap

    Биржа создана разработчиками Uniswap

    Комиссия за транзакции составляет 0,3%. Напрямую участникам пула ликвидности идет 0,25%. Остальные 0,05% конвертируются в SUSHI и распределяются между держателями токена

  • 1inch

    Биржа 1inch – это агрегатор децентрализованных бирж

    Платформа 1inch не взимает комиссии за вывод и покупку. При этом сохраняется комиссия за Gas (внутренняя валюта для операций в Ethereum). Биржа имеет собственный токен CHI Gastoken. Токеном можно оплачивать комиссии за транзакции со скидкой в 42%.

  • JustSwap

    DEX), работающая на основе блокчейна Трон

    Один из способов заработка на JustSwap – предоставление ликвидности

  • dYdX

    При торговле на бирже dYdX традиционно взимается комиссия для мейкера и тейкера. Комиссия для мейкера меньше, поскольку он создает ликвидность. Тейкер забирает ликвидность, поэтому платит больше.

  • Curve Finance

    имеет собственные токены yToken и CRV token. Первый – токен агрегатора доходности. Он позволяет отыскивать пул с лучшей процентной ставкой. CRV – функциональный и управляющий токен. Его получили все пользователи биржи, принимавшие участие в пулах

  • Serum Dex

    работает на основе блокчейна Solana

  • Bancor Network

    Ключевая особенность протокола Bancor Network состоит в том, что обмен токенов происходит напрямую с платформой. Участие второй стороны не требуется. Протокол платформы обеспечивает постоянное наличие токенов в резерве. Остаток токенов определяется коэффициентом постоянных резервов (CRR).


DAO - can or cannot have anything with finiance

DEFI - DAO which is related to finance


https://nearpad.io/

on angular, no sm c addresses in code found

https://infinitypad.com/

Chainmaker Kit ???

KOL - key opinion leader, influencer

White Label Resources - пластинки с белым лейблом, остается только наклеить свою картинку

liquidity (how much is acc for trading) vs volume (trading volume)


coins - fungible, but on level of blockchain (ETH, BTC)

tokens - fungible, but on level of smart contracts ()

OTC - over the counter (минуя прилавок), Quote-Driven type (https://www.investopedia.com/ask/answers/06/quoteorderdrivenmarket.asp)

order-driven market - displays ALL orders, that will or maybe will not be executed quote-driven market - displays only orders of market makers (the one that is both buys/bids (cheaper) and sells/asks (higher)) AND


  • IPO - init public offering (venture capitalists)

  • ICO - init coin offering

    Companies with an ICO project needs to issue a Whitepaper, a website of the product concerned and a backup team which will carry out the technicalities of the project

    ответственность на компании

  • IDO - init D exchange offering

    Example: Polkastarter and Binance Launchpad

  • IEO - init exchange offering

    To participate in IEO, the token owner will send a whitepaper of the project to the admin of the exchange

    Investors directly take part in the exchange, unlike ICO and STO.

    All exchanges are KYC/AML (Anti-Money Laundering) verified so ensures very high security to the investors.

    ответственность на exchange

    lock-up periods - A lock-up period is a window of time when investors are not allowed to redeem or sell shares of a particular investment

    TODO: Liquidity is very low compared to the other two????

  • STO - SECURITY TOKEN OFFERING

  • ISPO - Initial Stake Pool Offerings

  • ILO - init liquidity offering (== IDO?)

https://www.quora.com/What-is-the-difference-between-IPO-ICO-IEO-IDO-and-STO

https://coinfunda.com/ico-vs-ieo-vs-sto-what-is-the-difference/

Q/A: Why liquidity on IEO is bigger THEN on IDO??? in IEO liquidity is supported by owner of centralized exchange, but in DEX - people that have given their money to smart contracts.


Initial Token Circulation/Supply - at start

current token supply - right now

total token supply - can be unlimited or fixed (specified in sm c)

Maximum Token Supply -Total Token Supply minus Burnt Tokens

Initial Market Cap - how much fiat money product did have before listing on launchpad?

Platform Raise

Individual Allocation


What fees used in:

  • inifinitypad -
  • daomaker -
  • vent.finance -

Terra vs Near


Popular protocols from Etherium to near: makeDao

coingecko.com, popular markets (биржи): binance, huobi global, OKEx

  • polygon is compatible with Etherium (2d level blockchain)
  • Aurora is like polygon

Aurora protocols: 1inch, dodo, chainlink, near protocol

Validator app - you give them NEAR coin -> they stake it

NEP 141 -- ???

  • inflateable token -
  • stable tokens -

nearpad will use Aurora

1 ehter = 10^9 gwei = 10^18 wei

dappradar.com, awesomenear.com


  • Rainbow Bridge - swap eth to near
connect: metamask (can add any RPC remote proc coll network) or NearWallet (wallet-connect compatible - QR to allow from mobile with metamask to browser exchange)

The following popular tokens with common ERC-20 functionality will now be able to interoperate with NEAR, including but not limited to:
  Стейблкоины USDT (Tether), DAI, TUSD
  Обёрнутые токены WBTC и WETH
  Токены децентрализованных бирж 1INCH и UNI
  Токены кредитования AAVE и COMP
  Служебные токены HT (Huobi) и CRO (Crypto.com)

allows any information that is cryptographically provable on NEAR to be usable in Ethereum contracts and vice versa — including the ability to read the state and schedule calls with callbacks on the other chain.

This means a user can vote with their ETH balance in a NEAR DAO without sending a transaction on Ethereum

how works https://near.org/ru/blog/eth-near-rainbow-bridge/
light clients ???

two step ERC20 transfer process -

  1. approve transaction of N XXX tokens (external relay confirming transfer - waiting for blocks to be mined) 2.1. transfer tokens to token locker eth contract 2.2. wait 20 blocks (blocks from eth blockchain are synced to eth light client that lives in near smart contract) 2.3. deposit N nXXX tokens to NEAR

TODO: two fees in https://www.youtube.com/watch?v=zbmnITYLE-M&ab_channel=NEAR? - fee of 17 to ??? and fee 22 which is gas

  • Skyward Finance - launchpad???

  • ref.finance - dex, AMM that allows for swaps between any bridged tokens

    swap - pool

  • Pulse, a stablecoin-denominated prediction markets platform powered by Flux Protocol

  • Paras, an NFT trading platform for digital cards

  • Mooniswap -- amm on near, but thought 1inch dex aggregator

AMM (https://changelly.com/blog/automated-market-maker)


Fantom blockchain

  • leaderless - can run validator node IF have at least 1,000,000 FTM

Solana blockchain

solana wrapping for erc20 - I give 5 ETH to func and it gives me 20 MYTOKENs


token standarts:


escrow and liquidity locking (stacking of dao tokens) and stacking

TODO: how the owner of future application submit/post their applications on daomaker/nearmaker?

pen out

  • vesting - dressing someone in the robes or vestments (another derivative) of office or power

if leaves in two years - 4000 stock opt are vested, other are forfeited

2021-09-05-12pm-38-17-screenshot

  • non-forfeitable rights - rights cannot be lost (e.g. even if leaves from job at a company)

bitclout -- bet on influencers by buying "XXXCoin" (e.g. elonmuskCoin)


https://www.youtube.com/watch?v=v6inLeSvbLU&ab_channel=PROCENT


https://www.youtube.com/watch?v=Ja-Y7EARBTc&ab_channel=PROCENT

shibaswap.com - dex from shiba inu (SHIB) coin

security:

can use to:

  • add liquidity -- can create new pair or add liquidity to existing pair AND get the SSLP (shibe swap liquidity pool) token
  • swap
  • transfer liquidity from uniswap or sushiswap
  • stake 1 of 3 tokens (SHIB or LEASH or BONE), you can buy them in swap (for USDT) or buy SHIB on binance
  • farm -- stake SSLP on token pair (e.g. BONE-w(wrapped)ETH, IF BONE or wETH go down in price THEN I will lose both)

TODO: use Aurora to clone ERC-20 smart contracts

TODO: Or create or Aurora


polygon - diff c

rainbow bridge

tr cost - 1-2 cents truffle,

near NEP 141 token

near layer two

TODO: Mooniswap better then 1inch

https://github.com/1inch

AMM harder than launchpad how we will make KYC?

AMM on rust, launchpad on solidity?


Aurora - daomaker deps on oracles??? THEN aurora, ELSE rust

TODO check daomaker token contract on github

daomaker sm c calls sm c of AMM onchain OR outside chain???

KYC - on chain exists, blockbest

indexed oracles

NOT https://www.blockpass.org/ - persona (used by banks, angelists, proper AML system)

Ben can ask to make evm like Aurora for Terra

escrow contract, distribution contract, walled where people can deploy liquidity

todo use pancake on near (launch, dep tok, ) psc???

competitors: trustswap (escrow, lock, westing, ...), ignition, pstarter

2 contracts

fee calc:

features: tower? lauchsystem? AMM age of what?

token metrics vs token economy

cosmos -- osmos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment