Numun Token Brokerage
The NTB (Numun Token Brokerage) is a set of special Smart Contracts that allows Numun.fi to offer fixed prices for any Swap that goes in or out of nStables. Besides this, it helps orquestate the liquidity of nStables and snStables, minting assets on demand.
Architecture
The NTB (Numun Token Brokerage) is composed of two smart contracts, these are:
NTB: Mints nStables based on the request of the user. Each nStable has a Hard Limit amount to be minted that is defined by the Numun Ecosystem. When this Limit is reached, the NTB re-routes transactions to different Aggregators like 1inch or Odos.
Price provider v1: Manages the logic of price acquisition for nStables from providers like Chainlink Functions or Chronicle.
How it works?
The process to buy a nStable is the same as always, for more information you can check the How to Buy section in this documentation.
The information provided by Numun.fi UI will change, showing Pool Fee, Aggregator Fee and Slipagge if the transaction will be through a router and will show Tax-In/Tax-Out if the transaction will be through the NTB. You will see this information in the Numun.fi UI.
The NTB actually works for two pairs of routes. In the future we will add more routes based on other nStables available in Numun.fi:
USDC/nARS and nARS/USDC
USDC/nBRL and nBRL/USDC
Functions
The NTB uses two distinct types of Functions when an user interacts with. These are:
Buy Gem: This function is triggered by the Smart Contracts when an user wants to Swap nARS or nBRL for USDC. At the end of the transaction the user will receive USDC.
Sell Gem: This function is triggered by the Smart Contracts when an user wants to Mint nARS or nBRL with USDC. At the end of the transaction the user will receive nARS or nBRL as appropiate.
Fees
Swaps through the Numun Token Brokerage will have two distinct fees, these are:
Tax-In: This fee is applied when a user wants to obtain nStables through a Swap.
Tax-Out: This fee is applied when a user wants to swap nStable to obtain any other stablecoin like USDC or DAI.
Last updated