58 |
59 |
60 |
61 | ##
62 |
--------------------------------------------------------------------------------
/tp/about.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: >-
3 | Tyche protocol is all-in-one defi hub we offer set of useful dApps not just
4 | for Tyche community but also for the other projects/communities as well.
5 | ---
6 |
7 | # About
8 |
9 | [DEX](broken-reference)\
10 | [NFT Staking dApp](broken-reference)\
11 | NFT lending dApp (WIP)\
12 | NFT Marketplace (WIP)
13 |
--------------------------------------------------------------------------------
/tp/tyche-tokens.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: Tyche token and yield tokens
3 | ---
4 |
5 | # Tyche Tokens
6 |
7 | ## yTyche
8 |
9 | yTyche is a yield token on zkSynch blockchain\
10 | Verify token contract [here](https://explorer.zksync.io/address/0x096Df23209B7Ec5C07ecC5e8E4425193B31A7f5B)\
11 | Contract address [0x096Df23209B7Ec5C07ecC5e8E4425193B31A7f5B](https://explorer.zksync.io/address/0x096Df23209B7Ec5C07ecC5e8E4425193B31A7f5B)
12 |
13 | ## bTyche
14 |
15 | bTyche is a yeild token on Base blockchain\
16 | verify token contract [here ](https://basescan.org/token/0xc01e675547350ce3e3f6d0af69b57a536ec67485)\
17 | contract address [0xc01e675547350ce3e3f6d0af69b57a536ec67485](https://basescan.org/token/0xc01e675547350ce3e3f6d0af69b57a536ec67485)
18 |
19 | ## yTyche V2
20 |
21 | yTyche V2 is a yield token on zkSynch blockchain
22 |
--------------------------------------------------------------------------------
/tyche-amm/basic-amm-design-components.md:
--------------------------------------------------------------------------------
1 | # BASIC AMM Design Components
2 |
3 | #### Liquidity Pool: The Heart of Tyche AMM
4 |
5 | The Tyche Protocol operates on a liquidity pool, which is a collection of assets provided by users who want to participate in the platform. When a user deposits assets into the liquidity pool, they receive a proportional share of the pool in return. This shared pool of assets is what allows the Tyche Protocol to match buyers and sellers and determine the price of assets based on supply and demand.
6 |
7 | #### Constant Product Formula: Setting Asset Prices Automatically
8 |
9 | The constant product formula is a mathematical equation used by the Tyche Protocol to determine the price of assets. This formula takes into account the total value of the liquidity pool and the relative amounts of the different assets in the pool. By using this formula, the Tyche Protocol is able to automatically set the price of assets based on market conditions, providing a fair and reflective market for all users.
10 |
11 | #### Token Weighting: Balancing the Market
12 |
13 | Token weighting is a process used by the Tyche Protocol to determine the relative importance of different assets in the liquidity pool. By weighing the assets, the platform is able to calculate the price of assets in a balanced manner that accurately reflects market conditions.
14 |
15 | #### Trade Execution: Efficient and Intermediary-Free
16 |
17 | The Tyche Protocol offers fast and efficient trade execution, allowing users to trade assets without the need for intermediaries. When a user wants to trade an asset, the Tyche Protocol automatically matches them with a buyer or seller and executes the trade. This reduces the time and costs associated with traditional exchanges, making DeFi more accessible to everyone.
18 |
19 | \
20 |
--------------------------------------------------------------------------------
/tyche-amm/risks-of-amm.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: The general risk associated with the AMM
3 | ---
4 |
5 | # Risks of AMM
6 |
7 | > It's important to note that impermanent loss is a normal part of providing liquidity in AMM pools and can be mitigated by carefully considering the tokens and market conditions before providing liquidity.
8 |
9 | #### Price impact
10 |
11 | Price impact is the effect of the user's trade over the market price of an underlying asset pair. It is in direct correlation with the amount of liquidity in the pool. It can be simply measured by the percentage volume of the user’s trade with the base reference of total underlying liquidity in the pool price impact can be especially high for illiquid markets/pairs, and may cause a trader to lose a significant portion of their funds.
12 |
13 | #### Impermanent loss
14 |
15 | is a phenomenon that can occur in decentralized finance (DeFi) platforms that use Automated Market Maker (AMM) algorithms. It refers to the loss in value that liquidity providers experience when the price of the tokens in a liquidity pool changes.
16 |
17 | **IL example**
18 |
19 | For example, let's say Alice has deposited equal amounts of Ether and USDC into a liquidity pool to provide liquidity. The initial value of the pool is $100,000 with $50,000 in Ether and $50,000 in USDC.
20 |
21 | A few days later, the price of ETEHR increased relative to USDC. As a result, the value of the pool increases to $120,000, with $60,000 in EVM and $60,000 in USDC. However, Alice's share of the pool is still worth $50,000. This means that she has experienced an impermanent loss of $10,000, despite the overall value of the pool increasing.
22 |
23 | In this scenario, Alice's impermanent loss was caused by the change in the price of the tokens in the pool. As the price of ETH increased relative to USDC, the relative weight of ETH in the pool increased, causing Alice's share of the pool to decrease in value.
24 |
25 |
26 |
27 | \
28 |
--------------------------------------------------------------------------------
/tyche-amm/tyche-automated-market-maker.md:
--------------------------------------------------------------------------------
1 | # TYCHE Automated Market Maker
2 |
3 | AMMs implement a peer-to-pool method, where liquidity providers (LPs) contribute assets to liquidity pools while individual users exchange assets with a pool containing the swap assets. It benefits both LPs and swap users with accessible liquidity provision and swap. Users obtain immediate liquidity without having to find an exchange counterparty, whereas LPs profit from swap fees from users.
4 |
5 | As AMM, Tyche uses liquidity pools (LP) of different assets valued relative to each other. The liquidity pool will be used as a single counterparty for each transaction, pricing assets algorithmically with a conservation function unlike traditional order-book-based exchanges, where the price of an asset is determined by the last matched buy and sell orders.
6 |
7 | Tyche DEX will share the same conservation function, slippage, and divergence loss functions as Uniswap. As such, the system is structurally similar, but the main difference may lie in parameters and/or mechanism adaptation
8 |
9 | #### Key Features of the Tyche AMM
10 |
11 | * Decentralized: The Tyche Protocol is completely decentralized, meaning that no central authority has control over the system. This eliminates the need for intermediaries, making transactions faster, cheaper, and more secure.
12 | * Automated Market Making: The Tyche Protocol uses an automated market-making algorithm to match buyers and sellers and determine the price of assets. This eliminates the need for a centralized exchange and offers a more efficient and fair market.
13 | * Token Agnostic: The Tyche Protocol is token agnostic, meaning that users can trade any token they wish, as long as it is supported by the L2s/EVM platforms. This allows for a more diverse and dynamic market.
14 | * Low Fees: The Tyche Protocol has low transaction fees, making it more accessible and affordable for all users.
15 | * Secure: The Tyche Protocol is built on top of the zKsync blockchain and secured by Etherum security, providing a secure and transparent ledger of all transactions.\
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tyche_protocol_lightpaper_2.0_.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tychezone/public-docs/8f04348b2f5ac283e2463996c1270012a72df9c0/tyche_protocol_lightpaper_2.0_.pdf
--------------------------------------------------------------------------------
/tyche_protocol_whitepaper_2.0_.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tychezone/public-docs/8f04348b2f5ac283e2463996c1270012a72df9c0/tyche_protocol_whitepaper_2.0_.pdf
--------------------------------------------------------------------------------
/weave/developer-guide/README.md:
--------------------------------------------------------------------------------
1 | # Developer Guide
2 |
3 | To ensure with the smooth onboarding of collections, project are requested to follow the common standards.
4 |
5 | 1. NFT contracts have to implement a top level contractURI method as specc'd [here](contract-level-metadata.md) to ensure their NFT collections show up in our platform with the proper store front metadata
6 | 2. TokenURI has to follow this structure to ensure their NFTs show up with the right metadata. check [here](metadata-standards.md).
7 | 3. Fill out the Form.
8 |
9 | {% hint style="info" %}
10 | [https://weave.tyche.zone/](https://weave.tyche.zone/)
11 | {% endhint %}
12 |
13 |
--------------------------------------------------------------------------------
/weave/developer-guide/contract-level-metadata.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: Customizing the metadata for your smart contract
3 | ---
4 |
5 | # Contract-level metadata
6 |
7 | You can add a `contractURI` method to your ERC721 or ERC1155 contract that returns a URL for the storefront-level metadata for your contract.
8 |
9 | ```
10 | //Solidity
11 | contract MyCollectible is ERC721 {
12 | function contractURI() public view returns (string memory) {
13 | return "https://metadata-url.com/my-metadata";
14 | }
15 | }
16 | ```
17 |
18 | This URL should return data in the following format:
19 |
20 | ```
21 | // JSON
22 | {
23 | "name": "Tyche partner collection",
24 | "description": "imaginary creatures of Tyche partenr collection.",
25 | "image": "external-link-url/image.png",
26 | "external_link": "external-link-url"
27 | }
28 | ```
29 |
30 | You can also encode the data within the contract itself:
31 |
32 | ```
33 | // Some code
34 | contract MyCollectible is ERC721 {
35 | function contractURI() public pure returns (string memory) {
36 | string memory json = '{"name": "Tyche partner collection","description":"..."}';
37 | return string.concat("data:application/json;utf8,", json);
38 | }
39 | }
40 | ```
41 |
--------------------------------------------------------------------------------
/weave/developer-guide/metadata-standards.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: How to add rich metadata to your ERC721 or ERC1155 NFTs
3 | ---
4 |
5 | # Metadata Standards
6 |
7 | Providing _asset metadata_ allows applications like Tyche to pull in rich data for digital assets and easily display them in-app. Digital assets on a given smart contract are typically represented solely by a unique identifier (e.g., the `token_id` in ERC721), so metadata allows these assets to have additional properties, such as a name, description, and image
8 |
9 | ```
10 | //nft.sol
11 | /**
12 | * @dev Returns an URI for a given token ID
13 | */
14 | function tokenURI(uint256 _tokenId) public view returns (string) {
15 | return Strings.strConcat(
16 | baseTokenURI(),
17 | Strings.uint2str(_tokenId)
18 | );
19 | }
20 | ```
21 |
22 | The `tokenURI` function in your ERC721 or the `uri` function in your ERC1155 contract should return an HTTP or IPFS URL. When queried, this URL should in turn return a JSON blob of data with the metadata for your token. You can see an example of a simple Python server for serving metadata in the OpenSea creatures repo [here](https://github.com/ProjectOpenSea/opensea-creatures/tree/master/metadata-api).
23 |
--------------------------------------------------------------------------------
/weave/developer-guide/metadata-structure.md:
--------------------------------------------------------------------------------
1 | # Metadata structure
2 |
3 | OpenSea supports metadata that is structured according to [the official ERC721 metadata standard](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) or the [Enjin Metadata suggestions](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md#erc-1155-metadata-uri-json-schema).
4 |
5 | Additionally, we support several other properties that allow for multimedia attachments
6 |
7 | Here's an example of metadata:\
8 |
9 |
10 |
11 |
12 | ```
13 | // Some code
14 | {
15 | "description": "imaginary creatures of Tyche partenr collection.",
16 | "external_url": "https://imaginarycreatures.io/390",
17 | "image": "https://storage.pinnata/puffs/390.png",
18 | "name": "example",
19 | "attributes": [ ... ]
20 | }
21 | ```
22 |
--------------------------------------------------------------------------------
/weave/how-it-works/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: Weave is a ecosystem staking dApp
3 | ---
4 |
5 | # How it works
6 |
7 | The primary objective of this NFT platform is to enable TYCHE NFT holders to stake their NFTs in exchange for an APR in $TYCHE tokens, but it is not limited to only this use. We have designed this platform so that **every project on all EVMs Tyche is deployed can utilize it and provide staking rewards to their users** using their own tokens or even ETH/USDC/USDT — whatever suits them best. \
8 | \
9 | [Stake Now on Weave ](https://weave.tyche.zone/)
10 |
11 |
12 |
13 |
select the NFT collection you want to stake
14 |
15 |
16 |
17 |
Lending page of Weave
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weave/how-it-works/dual-incentives.md:
--------------------------------------------------------------------------------
1 | # Dual Incentives
2 |
3 | Unlock the power of your NFTs with the Weave dapp by Tyche, where innovation meets value. By choosing to stake your NFTs on this cutting-edge platform, you open the door to a world of dual incentives. Not only will you earn rewards in Tyche tokens, embracing the heart of the Tyche community, but you'll also be earning additional rewards in the form of prominent tokens like Ether, USDC, and more. It's a gateway to multiplying your benefits, capitalizing on the potential of your NFTs in ways that extend beyond convention. Join us on Weave by Tyche and discover a new horizon of rewards, where your NFTs become the keys to unlocking a spectrum of opportunities.
4 |
5 |
6 |
7 | .png>)
8 |
--------------------------------------------------------------------------------
/weave/how-it-works/expired-reward-pools.md:
--------------------------------------------------------------------------------
1 | # Expired reward pools
2 |
3 | WIP
4 |
--------------------------------------------------------------------------------
/weave/how-it-works/supported-collections.md:
--------------------------------------------------------------------------------
1 | # Supported collections
2 |
3 | ## Supported collections on zkSync L2
4 |
5 |