Opening Positions on Etherscan
If a user has never approved their token to be spent by the OptionMarketWrapper contract, they must first approve the token. Otherwise users can skip the Steps to Approve.

Steps to Approve
- 1.
- 2.Click Connect to Web3 and connect your wallet.
- 3.Click on the approve dropdown.
- 4.Input the contract address that you would like to approve sUSD for. For example, if you want to approve the OptionMarketWrapper contract you would write:
- 1.Spender: 0xcce7819d65f348c64b7beb205ba367b3fe33763b (for the ETH Liquidity Pool)
- 2.Value: 115792089237316195423570985008687907853269984665640564039457584007913129639935 (Maximum value in BigNumber)
- 5.Click write and sign the transaction. Now you are ready to go to the Open Position step.
----------------------------------------------------------------------------------------------------

Steps to Open Position
- 1.
- 2.Click Connect to Web3 and connect your wallet.
- 3.Click on the openPosition dropdown.
- 4.Input the parameters you would like to open your position. The openPosition parameters are:
- 1.optionMarket (address)
- 2.strikeId (uint256)
- 3.positionId (uint256)
- 4.iterations (uint256)
- 5.setCollateralTo (uint256)
- 6.currentCollateral (uint256)
- 7.amount (uint256)
- 8.minCost (uint256)
- 9.maxCost (uint256)
- 10.inputAmount (uint256)
- 11.inputAsset (address)
For example, if you want to purchase 1 sETH contract you would input: ["0xc7f1A22c30aE981E6A74a0267CE6cBBF27D8ecD5", "61", "0", "1", "0", "0", "1000000000000000", "0", "72640965621474238", "73509", "0x7F5c764cBc14f9669B88837ca1490cCa17c31607"] - 5.Click write and sign the transaction.
Last modified 8mo ago