What Is STPAY (STP)?
STPAY Contact your hosting provider letting them know your web server is not completing requests. An Error 522 means that the request was able to connect to your web server, but that the request didn’t finish. The most likely cause is that something on your server is hogging resources. Additional troubleshooting information here.
The manager Issue Fee and manager Redeem Fee are fees that are charged when an user enters or exits your Set Token. The pre issue hook is an optional parameter for a contract that can contain any custom logic you write prior to issuance. For example, the manager issuance contract can include whitelisting functionality, issuance limits and any other custom logic for operating your Set.
STPAY Storage Key Points
|Circulating Supply||4,044,037.00 STP|
|Source Code||Click Here To View Source Code|
|Explorers||Click Here To View Explorers|
|Twitter Page||Click Here To Visit Twitter Group|
|Whitepaper||Click Here To View|
|Official Project Website||Click Here To Visit Project Website|
Input the address of the Set you wish to issue and the amount of Set Tokens you wish to issue. In order for issuance to work ALL of the components must be owned by the calling address in the correct proportions (whether it’s a wallet or smart contract address). All equity components must be approved to the Debt Issuance Module contract with appropriate allowance for transfer.
Debt components are returned to you on issuance. This is to ensure an 100% mirroring of Set Token positions and ensure 0 slippage mint / redeems.In order to figure out the correct token amounts needed for issuance you can call the following function which returns a list of equity units and debt units.
STPAY Conversely, redeeming is the process of burning your Set Token balance and receiving the underlying collateral. You must approve ALL debt units to the Debt Issuance Module. Specify the amount of Sets to redeem and then those Sets are burned and the components are transferred to the calling address. The following function will return the required amount of debt components to send and equity components to receive back.
What is the Trade Module
The Trade Module enables managers of Set Tokens to perform atomic trades using aggregators such as 0x and 1inch, and decentralized exchanges such as Sushi swap and Uniswap. This re-balances the Set for all Set holders. STPAY strongly recommended that you read PerpetualV2 Protocol’s documentation before using this module. Perp’s leveraged positions are subject to liquidation and fee flows that are important to understand to trade successfully on their platform.
Initializing the Trade Module
All modules need to be added to the Set Token as the first step. Learn how to add a module to your Set Token by referring to the Adding a Module guide. The exchange name is a string specifying which exchange adapter to execute the trade. The exchange name is registered in the Integration Registry contract. Exchanges and aggregators currently supported by the Trade Module are.
Token sets APIs
STPAY have provided a few simple API for querying for a trade quote. STPAY assume no responsibility for any usage of the API. Always verify trade parameters returned by the API before use. Incorrect usage can result in significant losses.
The PerpV2 Leverage Module allows you to execute trades on the PerpetualV2 Protocol deployed to the Optimism network. Perpetual lets you to take leveraged long and short positions in any market they support. It’s a convenient way to gain (for example) 5X short exposure to BTC.
Via Perpetual Protocol
STPAY strongly recommended that you read Perpetual V2 Protocol’s documentation before using this module. Perp’s leveraged positions are subject to liquidation and fee flows that are important to understand to trade successfully on their platform. Within Perp Protocol, exposure to assets like BTC is represented by virtual tokens traded on the UniswapV3 exchange. These tokens are wholly controlled by Perp and only held by users via a balance tracked internally by Perp.
All positions ultimately settle to a collateral token (USDC). Addresses of supported assets can be found here: [TODO: have asked Perp team for a link via Telegram, this info missing from their docs]Below we’ll walk through the steps required to trade into and out of a Perp position.