Yield
The Yield API
The Yield API is used to leverage tokens in secondary DeFi markets and exchanges. For example, an NFT representing a municipal bond may be used as collateral and staked in an AMM. The endpoint for Yield alpha is https://instamint.network:5000. The Yield functionality collects data about major best-of-breed AMMs. Given that Instamint is infrastructure, it is agnostic to which AMM protocol it can stake to, however, Instamint currently stakes using Tinyman but this does not suggest Tinyman is the ideal protocol to stake to.
Currently, the above endpoint supports only the Algorand blockchain. The endpoint will be moved to https://api.instamint.com/yield in Q1 2023 when Ethereum support is added.
In addition to staking, Yield collects liquidity pool information from both Tinyman and Yieldly and tracks historical TVL.
Staking and Pool Creation
Using Yield, it is possible to stake a pair of NFTs with ALGOs as pairs and create a liquidity pool simultaneously. For example, a municipal bond NFT with an Net Present Value equal to 50,000 ALGOs is staked into a liquidity pool with 50,000 ALGOs. The liquidity pool is created using Tinyman.
Currently, Instamint supports the creation of a liquidity pool with an NFT and ALGOs and is experimenting with staking fractionalized NFTs and staking an NFT against other assets like USDC.
/stake
Stake an NFT and ALGOs pair, create a new liquidity pool on Tinyman
50
The stake endpoint accepts two parameters, an Algorand asset ID and the quantity of ALGOs paired with the staking.
If generation of the pool and staking of the assets is successful, information about the pool is returned and the pool is registered into Tinyman and is retrievable in the Console. A response will look the below, with the transaction ID.
Staking via Console
Console allows users to select two assets that are minted and stake them into a new liquidity pool. This is possible in the Assets menu. To stake, select two assets that are minted and select Stake from the Action menu.
Historical TVL Data
Yield also collects liquidity pool information from Tinyman and Yieldly. If a pair of NFTs are staked into a liquidity pool, that pool information and its TVL is available in Console. Because valuations of NFTs and how pricing information is available, TVL for a pair of NFTs typically remain constant.
Note: Currently, support from the Yieldly team is limited and there is no testnet version of the protocol.
The Yield API provides access to the underlying DeFi protocols list of liquidity pols via the following APIs.
/yieldly
Retrieve LPs from Yieldly
10
/tinyman
Retrieve LPs from Tinyman that belong to Instamint
10
Demo
In the below video, we go through the entire process of minting a token to staking it in Tinyman. The steps are the following:
Mint the token via the Meta API. In the demo below, this is done via Postman
Once the mint is complete, grab the Algorand Asset ID
Call the Yield API with the Algorand Asset ID to stake it and a quantity of ALGOs
Confirm on the Tinyman Dapp that the pool has been created and the NFT / ALGOs staked
Confirm on Console under DeFi / Tinyman the pool has been created
Last updated