Stage 7
Last updated
Last updated
Status: Testing in progress
DeFi Adaptors:
The first DeFi feature has been introduced: Swap functionality. Users can swap their shielded assets (zAssets) while keeping them in the MASP and interacting with external decentralized Swap protocol. For the purpose of testing, Stage 7 will include integrations with two Swap protocols - Uniswap V3 and QuickSwap simulated on Amoy ( the new test network of Polygon).
To prepare the transaction, a user should (1) choose the target pair for the swap and (2) set the amount to send (swap from). The user can see the estimated amount to receive (swap to). Additionally, the user can (3) switch the send/receive tokens within the chosen pair. Note: The amount to receive is not final and may vary depending on the user’s transaction settings (particularly the maximum slippage parameter) and the actual pool parameters at the time of transaction execution.
A swap transaction requires users to define the following settings to initiate it:
Route: By default, the product selects the best route, but users can change this option based on their preference.
Maximum Slippage: This parameter defines the allowable difference between the expected price of an asset and the actual price at which it is traded/swapped. Users can choose from (a) Auto, (b) preset amounts (0.1%, 0.5%, 1%), or (c) a Custom option. Note: Setting the slippage below 0.05% may cause the transaction to fail, while slippage above 1% could result in an unfavorable rate for the swap.
Transaction Deadline: This parameter sets the time frame after which a pending transaction will automatically revert if not completed. The current setting is fixed at 5 minutes.
Transaction parameters are divided into two groups: (1) swap and (2) protocol. The second group is consistent across the product's functionality, while the first group details the specific characteristics of the swap route:
Price Impact: This measures the price change resulting from the swap transaction the user intends to execute, considering factors such as liquidity, order book depth, and order size.
Swap Fee: This is the fee collected by the external platform that facilitates the transaction route. To preserve user privacy, this fee is initially collected using zZKP and later paid to third parties by the protocol.
Slippage: This parameter, set by the user, defines the acceptable difference between the expected price of an asset and the actual trading price.
Minimum Received: This represents the guaranteed amount the user will receive, taking the slippage parameter into account.
Ratio: This likely refers to the exchange rate or conversion ratio between the swapped assets.
Data Escrow
Data Escrow is an important Product Feature that supports Compliance Data requirements. Panther Protocols has implemented different types of Data Safe mechanism based on the roles that the DAO, Institutions (also referred as the Zone Manager) and Compliance provider perform to support this. In the next stage, we will continue to build the decryption mechanism for those roles to access the data. The whole process will be tested when those roles participate in the testing process - essentially we see this as a process to Zone Manager testing the protocol along with other participants.
History page:
The History page UI has been updated with structured and detailed data, including the following factors:
Transaction Type
Amount
Asset
USD Value
Date and Time
Additionally, data sorting by these factors has been implemented to enhance user experience. To use the functionality one should hover a cursor on a particular column title and click it.
\