├── .env ├── .eslintrc.json ├── .github └── workflows │ ├── publish-sdk.yml │ └── test.yml ├── .gitignore ├── .prettierrc.json ├── .trunk └── out ├── .vscode └── settings.json ├── Anchor.toml ├── CODEOWNERS ├── Cargo.lock ├── Cargo.toml ├── config.json ├── docs ├── api │ └── supply.js ├── babel.config.js ├── docs │ ├── architecture-overview.md │ ├── connect-to-wallet.md │ ├── exchange.md │ ├── faq.md │ ├── faucet.md │ ├── glossary.md │ ├── home.md │ ├── overview.md │ ├── parameters.md │ ├── solana.md │ ├── staking.md │ ├── stats.md │ ├── synthetic-tokens.md │ ├── synthetify-token.md │ ├── technical │ │ ├── account.md │ │ ├── collateral.md │ │ ├── overview.md │ │ ├── staking.md │ │ ├── state.md │ │ ├── swapline.md │ │ ├── synthetics.md │ │ └── vaults.md │ └── vaults.md ├── docusaurus.config.js ├── package-lock.json ├── package.json ├── sidebars.js ├── src │ ├── css │ │ └── custom.css │ └── pages │ │ ├── index.js │ │ ├── styles.module.css │ │ └── user-guide.js ├── static │ └── img │ │ ├── docs │ │ ├── assetToBuy.png │ │ ├── assetToSell.png │ │ ├── burn.png │ │ ├── burnAmount.png │ │ ├── burnConfirmation.png │ │ ├── burnTransaction.png │ │ ├── checkTransfer1.png │ │ ├── checkTransfer2.png │ │ ├── chooseWallet.png │ │ ├── connectedWallet.png │ │ ├── deposit.png │ │ ├── depositAmount.png │ │ ├── depositConfirmation.png │ │ ├── depositTransaction.png │ │ ├── disconnection.png │ │ ├── enterYourPassword.png │ │ ├── exchange.png │ │ ├── exchangeArrow.png │ │ ├── exchangeChart.png │ │ ├── exchangeConfirmation.png │ │ ├── exchangeTransaction.png │ │ ├── faucetGetToken.png │ │ ├── faucetTransaction.png │ │ ├── howToConnect.png │ │ ├── howToConnectWallet.png │ │ ├── listToken.png │ │ ├── mint.png │ │ ├── mintAmount.png │ │ ├── mintConfirmation.png │ │ ├── mintTransaction.png │ │ ├── rewards.png │ │ ├── rewardsHover.png │ │ ├── selectToken.png │ │ ├── stakingView.png │ │ ├── stats.png │ │ ├── statsCards.png │ │ ├── statsCollateral.png │ │ ├── statsDebtPool.png │ │ ├── swap.png │ │ ├── swapButton.png │ │ ├── syntheticTokens.png │ │ ├── topChart.png │ │ ├── transactionApproval.png │ │ ├── vaults │ │ │ ├── VaultCRatio.png │ │ │ ├── VaultGeneralInfo.png │ │ │ ├── VaultPage.png │ │ │ ├── VaultRepay.png │ │ │ └── VaultTable.png │ │ ├── withdraw.png │ │ ├── withdrawAmount.png │ │ ├── withdrawConfirmation.png │ │ └── withdrawTransaction.png │ │ ├── favicon.ico │ │ └── logo.png └── yarn.lock ├── license.txt ├── migrations ├── deploy_devnet.ts ├── deploy_local.ts ├── deploy_mainnet.ts ├── deploy_testnet.ts └── minter.ts ├── msolDist +1641384072597.json ├── msolDist +1642178732259.json ├── msolDist +1643037812989.json ├── package.json ├── programs ├── exchange │ ├── Cargo.toml │ ├── Xargo.toml │ └── src │ │ ├── account.rs │ │ ├── context.rs │ │ ├── decimal.rs │ │ ├── lib.rs │ │ ├── math.rs │ │ ├── oracle.rs │ │ └── utils.rs └── pyth │ ├── Cargo.toml │ ├── Xargo.toml │ └── src │ ├── lib.rs │ └── pc.rs ├── scripts ├── devnet │ ├── add-asset.ts │ ├── add-collateral-wsol.ts │ ├── add-collateral.ts │ ├── add-synthetic.ts │ ├── add-vault.ts │ ├── add-vaults.ts │ ├── admin.ts │ ├── change-collateral-ratio.ts │ ├── change-health-factor.ts │ ├── change-liquidation-buffer.ts │ ├── change-liquidation-penalty.ts │ ├── change-max-collateral.ts │ ├── change-max-supply.ts │ ├── change-round-amount.ts │ ├── change-round-lenght copy.ts │ ├── claim-all.ts │ ├── create-swapline.ts │ ├── fetch-data.ts │ ├── get-state.ts │ ├── halt-vault.ts │ ├── set-admin.ts │ ├── set-delay.ts │ ├── set-halted.ts │ ├── set-oracle.ts │ ├── vault-entry-flow.ts │ ├── withdraw-fees.ts │ └── withdraw-swapline-fee.ts └── walletProvider │ ├── factory.js │ ├── ledger-core.js │ ├── ledger.js │ ├── localStorage.js │ └── wallet.ts ├── sdk ├── .gitignore ├── license.txt ├── package-lock.json ├── package.json ├── src │ ├── exchange.ts │ ├── idl │ │ ├── exchange.ts │ │ └── pyth.ts │ ├── index.ts │ ├── network.ts │ └── utils.ts └── tsconfig.json ├── tests ├── admin-vaults.spec.ts ├── admin-withdraw.spec.ts ├── exchange-admin.spec.ts ├── exchange.spec.ts ├── interest-debt.spec.ts ├── isolated-burn.spec.ts ├── liquidation-small.spec.ts ├── liquidation.spec.ts ├── multicollateral.spec.ts ├── oracleUtils.ts ├── settlement.spec.ts ├── staking-multiuser.spec.ts ├── staking.spec.ts ├── swap-line.spec.ts ├── swap-without-account.spec.ts ├── swapline-decimal.spec.ts ├── utils.ts ├── vault-external-collateral.spec.ts ├── vaults-interest-debt.spec.ts ├── vaults-liquidation-small.spec.ts ├── vaults-liquidation.spec.ts └── vaults.spec.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- 1 | ANCHOR_WALLET=~/.config/solana/id.json 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/publish-sdk.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/.github/workflows/publish-sdk.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.trunk/out: -------------------------------------------------------------------------------- 1 | /Users/norbertbodziony/.cache/trunk/repos/d9319cb6f7603468bfd8535e138b86e4/out -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/Anchor.toml -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/Cargo.toml -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/config.json -------------------------------------------------------------------------------- /docs/api/supply.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/api/supply.js -------------------------------------------------------------------------------- /docs/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/babel.config.js -------------------------------------------------------------------------------- /docs/docs/architecture-overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/architecture-overview.md -------------------------------------------------------------------------------- /docs/docs/connect-to-wallet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/connect-to-wallet.md -------------------------------------------------------------------------------- /docs/docs/exchange.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/exchange.md -------------------------------------------------------------------------------- /docs/docs/faq.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/faq.md -------------------------------------------------------------------------------- /docs/docs/faucet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/faucet.md -------------------------------------------------------------------------------- /docs/docs/glossary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/glossary.md -------------------------------------------------------------------------------- /docs/docs/home.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/home.md -------------------------------------------------------------------------------- /docs/docs/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/overview.md -------------------------------------------------------------------------------- /docs/docs/parameters.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/parameters.md -------------------------------------------------------------------------------- /docs/docs/solana.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/solana.md -------------------------------------------------------------------------------- /docs/docs/staking.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/staking.md -------------------------------------------------------------------------------- /docs/docs/stats.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/stats.md -------------------------------------------------------------------------------- /docs/docs/synthetic-tokens.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/synthetic-tokens.md -------------------------------------------------------------------------------- /docs/docs/synthetify-token.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/synthetify-token.md -------------------------------------------------------------------------------- /docs/docs/technical/account.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/account.md -------------------------------------------------------------------------------- /docs/docs/technical/collateral.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/collateral.md -------------------------------------------------------------------------------- /docs/docs/technical/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/overview.md -------------------------------------------------------------------------------- /docs/docs/technical/staking.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/staking.md -------------------------------------------------------------------------------- /docs/docs/technical/state.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/state.md -------------------------------------------------------------------------------- /docs/docs/technical/swapline.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/swapline.md -------------------------------------------------------------------------------- /docs/docs/technical/synthetics.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/synthetics.md -------------------------------------------------------------------------------- /docs/docs/technical/vaults.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/technical/vaults.md -------------------------------------------------------------------------------- /docs/docs/vaults.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docs/vaults.md -------------------------------------------------------------------------------- /docs/docusaurus.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/docusaurus.config.js -------------------------------------------------------------------------------- /docs/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/package-lock.json -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/package.json -------------------------------------------------------------------------------- /docs/sidebars.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/sidebars.js -------------------------------------------------------------------------------- /docs/src/css/custom.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/src/css/custom.css -------------------------------------------------------------------------------- /docs/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/src/pages/index.js -------------------------------------------------------------------------------- /docs/src/pages/styles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/src/pages/styles.module.css -------------------------------------------------------------------------------- /docs/src/pages/user-guide.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/src/pages/user-guide.js -------------------------------------------------------------------------------- /docs/static/img/docs/assetToBuy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/assetToBuy.png -------------------------------------------------------------------------------- /docs/static/img/docs/assetToSell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/assetToSell.png -------------------------------------------------------------------------------- /docs/static/img/docs/burn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/burn.png -------------------------------------------------------------------------------- /docs/static/img/docs/burnAmount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/burnAmount.png -------------------------------------------------------------------------------- /docs/static/img/docs/burnConfirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/burnConfirmation.png -------------------------------------------------------------------------------- /docs/static/img/docs/burnTransaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/burnTransaction.png -------------------------------------------------------------------------------- /docs/static/img/docs/checkTransfer1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/checkTransfer1.png -------------------------------------------------------------------------------- /docs/static/img/docs/checkTransfer2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/checkTransfer2.png -------------------------------------------------------------------------------- /docs/static/img/docs/chooseWallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/chooseWallet.png -------------------------------------------------------------------------------- /docs/static/img/docs/connectedWallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/connectedWallet.png -------------------------------------------------------------------------------- /docs/static/img/docs/deposit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/deposit.png -------------------------------------------------------------------------------- /docs/static/img/docs/depositAmount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/depositAmount.png -------------------------------------------------------------------------------- /docs/static/img/docs/depositConfirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/depositConfirmation.png -------------------------------------------------------------------------------- /docs/static/img/docs/depositTransaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/depositTransaction.png -------------------------------------------------------------------------------- /docs/static/img/docs/disconnection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/disconnection.png -------------------------------------------------------------------------------- /docs/static/img/docs/enterYourPassword.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/enterYourPassword.png -------------------------------------------------------------------------------- /docs/static/img/docs/exchange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/exchange.png -------------------------------------------------------------------------------- /docs/static/img/docs/exchangeArrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/exchangeArrow.png -------------------------------------------------------------------------------- /docs/static/img/docs/exchangeChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/exchangeChart.png -------------------------------------------------------------------------------- /docs/static/img/docs/exchangeConfirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/exchangeConfirmation.png -------------------------------------------------------------------------------- /docs/static/img/docs/exchangeTransaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/exchangeTransaction.png -------------------------------------------------------------------------------- /docs/static/img/docs/faucetGetToken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/faucetGetToken.png -------------------------------------------------------------------------------- /docs/static/img/docs/faucetTransaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/faucetTransaction.png -------------------------------------------------------------------------------- /docs/static/img/docs/howToConnect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/howToConnect.png -------------------------------------------------------------------------------- /docs/static/img/docs/howToConnectWallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/howToConnectWallet.png -------------------------------------------------------------------------------- /docs/static/img/docs/listToken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/listToken.png -------------------------------------------------------------------------------- /docs/static/img/docs/mint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/mint.png -------------------------------------------------------------------------------- /docs/static/img/docs/mintAmount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/mintAmount.png -------------------------------------------------------------------------------- /docs/static/img/docs/mintConfirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/mintConfirmation.png -------------------------------------------------------------------------------- /docs/static/img/docs/mintTransaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/mintTransaction.png -------------------------------------------------------------------------------- /docs/static/img/docs/rewards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/rewards.png -------------------------------------------------------------------------------- /docs/static/img/docs/rewardsHover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/rewardsHover.png -------------------------------------------------------------------------------- /docs/static/img/docs/selectToken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/selectToken.png -------------------------------------------------------------------------------- /docs/static/img/docs/stakingView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/stakingView.png -------------------------------------------------------------------------------- /docs/static/img/docs/stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/stats.png -------------------------------------------------------------------------------- /docs/static/img/docs/statsCards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/statsCards.png -------------------------------------------------------------------------------- /docs/static/img/docs/statsCollateral.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/statsCollateral.png -------------------------------------------------------------------------------- /docs/static/img/docs/statsDebtPool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/statsDebtPool.png -------------------------------------------------------------------------------- /docs/static/img/docs/swap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/swap.png -------------------------------------------------------------------------------- /docs/static/img/docs/swapButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/swapButton.png -------------------------------------------------------------------------------- /docs/static/img/docs/syntheticTokens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/syntheticTokens.png -------------------------------------------------------------------------------- /docs/static/img/docs/topChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/topChart.png -------------------------------------------------------------------------------- /docs/static/img/docs/transactionApproval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/transactionApproval.png -------------------------------------------------------------------------------- /docs/static/img/docs/vaults/VaultCRatio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/vaults/VaultCRatio.png -------------------------------------------------------------------------------- /docs/static/img/docs/vaults/VaultGeneralInfo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/vaults/VaultGeneralInfo.png -------------------------------------------------------------------------------- /docs/static/img/docs/vaults/VaultPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/vaults/VaultPage.png -------------------------------------------------------------------------------- /docs/static/img/docs/vaults/VaultRepay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/vaults/VaultRepay.png -------------------------------------------------------------------------------- /docs/static/img/docs/vaults/VaultTable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/vaults/VaultTable.png -------------------------------------------------------------------------------- /docs/static/img/docs/withdraw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/withdraw.png -------------------------------------------------------------------------------- /docs/static/img/docs/withdrawAmount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/withdrawAmount.png -------------------------------------------------------------------------------- /docs/static/img/docs/withdrawConfirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/withdrawConfirmation.png -------------------------------------------------------------------------------- /docs/static/img/docs/withdrawTransaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/docs/withdrawTransaction.png -------------------------------------------------------------------------------- /docs/static/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/favicon.ico -------------------------------------------------------------------------------- /docs/static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/static/img/logo.png -------------------------------------------------------------------------------- /docs/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/docs/yarn.lock -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/license.txt -------------------------------------------------------------------------------- /migrations/deploy_devnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/migrations/deploy_devnet.ts -------------------------------------------------------------------------------- /migrations/deploy_local.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/migrations/deploy_local.ts -------------------------------------------------------------------------------- /migrations/deploy_mainnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/migrations/deploy_mainnet.ts -------------------------------------------------------------------------------- /migrations/deploy_testnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/migrations/deploy_testnet.ts -------------------------------------------------------------------------------- /migrations/minter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/migrations/minter.ts -------------------------------------------------------------------------------- /msolDist +1641384072597.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/msolDist +1641384072597.json -------------------------------------------------------------------------------- /msolDist +1642178732259.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/msolDist +1642178732259.json -------------------------------------------------------------------------------- /msolDist +1643037812989.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/msolDist +1643037812989.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/package.json -------------------------------------------------------------------------------- /programs/exchange/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/Cargo.toml -------------------------------------------------------------------------------- /programs/exchange/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/Xargo.toml -------------------------------------------------------------------------------- /programs/exchange/src/account.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/src/account.rs -------------------------------------------------------------------------------- /programs/exchange/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/src/context.rs -------------------------------------------------------------------------------- /programs/exchange/src/decimal.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/src/decimal.rs -------------------------------------------------------------------------------- /programs/exchange/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/src/lib.rs -------------------------------------------------------------------------------- /programs/exchange/src/math.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/src/math.rs -------------------------------------------------------------------------------- /programs/exchange/src/oracle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/src/oracle.rs -------------------------------------------------------------------------------- /programs/exchange/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/exchange/src/utils.rs -------------------------------------------------------------------------------- /programs/pyth/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/pyth/Cargo.toml -------------------------------------------------------------------------------- /programs/pyth/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/pyth/Xargo.toml -------------------------------------------------------------------------------- /programs/pyth/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/pyth/src/lib.rs -------------------------------------------------------------------------------- /programs/pyth/src/pc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/programs/pyth/src/pc.rs -------------------------------------------------------------------------------- /scripts/devnet/add-asset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/add-asset.ts -------------------------------------------------------------------------------- /scripts/devnet/add-collateral-wsol.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/add-collateral-wsol.ts -------------------------------------------------------------------------------- /scripts/devnet/add-collateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/add-collateral.ts -------------------------------------------------------------------------------- /scripts/devnet/add-synthetic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/add-synthetic.ts -------------------------------------------------------------------------------- /scripts/devnet/add-vault.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/add-vault.ts -------------------------------------------------------------------------------- /scripts/devnet/add-vaults.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/add-vaults.ts -------------------------------------------------------------------------------- /scripts/devnet/admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/admin.ts -------------------------------------------------------------------------------- /scripts/devnet/change-collateral-ratio.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-collateral-ratio.ts -------------------------------------------------------------------------------- /scripts/devnet/change-health-factor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-health-factor.ts -------------------------------------------------------------------------------- /scripts/devnet/change-liquidation-buffer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-liquidation-buffer.ts -------------------------------------------------------------------------------- /scripts/devnet/change-liquidation-penalty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-liquidation-penalty.ts -------------------------------------------------------------------------------- /scripts/devnet/change-max-collateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-max-collateral.ts -------------------------------------------------------------------------------- /scripts/devnet/change-max-supply.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-max-supply.ts -------------------------------------------------------------------------------- /scripts/devnet/change-round-amount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-round-amount.ts -------------------------------------------------------------------------------- /scripts/devnet/change-round-lenght copy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/change-round-lenght copy.ts -------------------------------------------------------------------------------- /scripts/devnet/claim-all.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/claim-all.ts -------------------------------------------------------------------------------- /scripts/devnet/create-swapline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/create-swapline.ts -------------------------------------------------------------------------------- /scripts/devnet/fetch-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/fetch-data.ts -------------------------------------------------------------------------------- /scripts/devnet/get-state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/get-state.ts -------------------------------------------------------------------------------- /scripts/devnet/halt-vault.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/halt-vault.ts -------------------------------------------------------------------------------- /scripts/devnet/set-admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/set-admin.ts -------------------------------------------------------------------------------- /scripts/devnet/set-delay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/set-delay.ts -------------------------------------------------------------------------------- /scripts/devnet/set-halted.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/set-halted.ts -------------------------------------------------------------------------------- /scripts/devnet/set-oracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/set-oracle.ts -------------------------------------------------------------------------------- /scripts/devnet/vault-entry-flow.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/vault-entry-flow.ts -------------------------------------------------------------------------------- /scripts/devnet/withdraw-fees.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/withdraw-fees.ts -------------------------------------------------------------------------------- /scripts/devnet/withdraw-swapline-fee.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/devnet/withdraw-swapline-fee.ts -------------------------------------------------------------------------------- /scripts/walletProvider/factory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/walletProvider/factory.js -------------------------------------------------------------------------------- /scripts/walletProvider/ledger-core.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/walletProvider/ledger-core.js -------------------------------------------------------------------------------- /scripts/walletProvider/ledger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/walletProvider/ledger.js -------------------------------------------------------------------------------- /scripts/walletProvider/localStorage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/walletProvider/localStorage.js -------------------------------------------------------------------------------- /scripts/walletProvider/wallet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/scripts/walletProvider/wallet.ts -------------------------------------------------------------------------------- /sdk/.gitignore: -------------------------------------------------------------------------------- 1 | lib -------------------------------------------------------------------------------- /sdk/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/license.txt -------------------------------------------------------------------------------- /sdk/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/package-lock.json -------------------------------------------------------------------------------- /sdk/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/package.json -------------------------------------------------------------------------------- /sdk/src/exchange.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/src/exchange.ts -------------------------------------------------------------------------------- /sdk/src/idl/exchange.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/src/idl/exchange.ts -------------------------------------------------------------------------------- /sdk/src/idl/pyth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/src/idl/pyth.ts -------------------------------------------------------------------------------- /sdk/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/src/index.ts -------------------------------------------------------------------------------- /sdk/src/network.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/src/network.ts -------------------------------------------------------------------------------- /sdk/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/src/utils.ts -------------------------------------------------------------------------------- /sdk/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/sdk/tsconfig.json -------------------------------------------------------------------------------- /tests/admin-vaults.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/admin-vaults.spec.ts -------------------------------------------------------------------------------- /tests/admin-withdraw.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/admin-withdraw.spec.ts -------------------------------------------------------------------------------- /tests/exchange-admin.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/exchange-admin.spec.ts -------------------------------------------------------------------------------- /tests/exchange.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/exchange.spec.ts -------------------------------------------------------------------------------- /tests/interest-debt.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/interest-debt.spec.ts -------------------------------------------------------------------------------- /tests/isolated-burn.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/isolated-burn.spec.ts -------------------------------------------------------------------------------- /tests/liquidation-small.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/liquidation-small.spec.ts -------------------------------------------------------------------------------- /tests/liquidation.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/liquidation.spec.ts -------------------------------------------------------------------------------- /tests/multicollateral.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/multicollateral.spec.ts -------------------------------------------------------------------------------- /tests/oracleUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/oracleUtils.ts -------------------------------------------------------------------------------- /tests/settlement.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/settlement.spec.ts -------------------------------------------------------------------------------- /tests/staking-multiuser.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/staking-multiuser.spec.ts -------------------------------------------------------------------------------- /tests/staking.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/staking.spec.ts -------------------------------------------------------------------------------- /tests/swap-line.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/swap-line.spec.ts -------------------------------------------------------------------------------- /tests/swap-without-account.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/swap-without-account.spec.ts -------------------------------------------------------------------------------- /tests/swapline-decimal.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/swapline-decimal.spec.ts -------------------------------------------------------------------------------- /tests/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/utils.ts -------------------------------------------------------------------------------- /tests/vault-external-collateral.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/vault-external-collateral.spec.ts -------------------------------------------------------------------------------- /tests/vaults-interest-debt.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/vaults-interest-debt.spec.ts -------------------------------------------------------------------------------- /tests/vaults-liquidation-small.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/vaults-liquidation-small.spec.ts -------------------------------------------------------------------------------- /tests/vaults-liquidation.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/vaults-liquidation.spec.ts -------------------------------------------------------------------------------- /tests/vaults.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tests/vaults.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Synthetify/synthetify-protocol/HEAD/tsconfig.json --------------------------------------------------------------------------------