- Go to the Read Contract Tab on the ocDai contract page.
- In the read contract tab, search for the function
maxOTokensIssuable.
- Pass in the amount on ETH you want to supply as collateral in wei. Note down how much collateral you want to supply. You can use this ETH-to-wei converter to help.The result you get from this function is the maximum number of oTokens you can issue against your ETH. Note down this value as the
safeMaxNumberOfOTokens
. - This current minimum collateralization ratio is 160%, if you fall below this ratio, you could be liquidated. Hence, we strongly recommend creating fewer oTokens than the number that is shown to you. Choose your desired collateralization ratio > 160%. If your desired collateralization ratio is 200%, then the
numOptions = (safeMaxNumberOfOTokens * 160) / 200
. Note down thenumOptions
that you want to create. - Once you know the
numOptions
you want to create and the collateral you want to supply, switch over to the Write Contract Tab.- Ensure you connect your wallet to the etherscan page.
- If this is your first time creating an option from the current account search for the
CreateETHCollateralOption
function.- Fill out the
payableAmount
in ETH (not wei this time, this is an Etherscan quirk). - Fill out the
numOptions
with the value that you calculated based on your desired collateralization ratio in step 4. - Fill out the address that you want to send the newly created options to in the receiver field. This is most likely your wallet address.
- Fill out the
- If you have already created options from the current account search for the
addETHCollateralOption
function. (Not to be confused withaddETHCollateral
function)- Fill out the payableAmount in ETH (not wei this time, this is an Etherscan quirk).
- Fill out the numOptions with the value that you calculated based on your desired collateralization ratio in step 4.
- Fill out the address that you want to send the newly created options to in the receiver field. This is most likely your wallet address.
- Hit write and then confirm the transaction through your wallet. You have created the options! You can now either
- sell them on uniswap OR
- add them to the uniswap ocDai pool. (You will need to search for the oToken with the address below). The ocDai address is here: 0x98cc3bd6af1880fcfda17ac477b2f612980e5e33.
-
Go to the Read Contract Tab __on the ocUSDC
contract page.
-
In the read contract tab, search for the function
maxOTokensIssuable.
-
Pass in the amount on ETH you want to supply as collateral in wei. Note down how much collateral you want to supply. You can use this ETH-to-wei converter to help.The result you get from this function is the maximum number of oTokens you can issue against your ETH. Note down this value as the
safeMaxNumberOfOTokens
. -
This current minimum collateralization ratio is 160%, if you fall below this ratio, you could be liquidated. Hence, we strongly recommend creating fewer oTokens than the number that is shown to you. Choose your desired collateralization ratio > 160%. If your desired collateralization ratio is 200%, then the
numOptions = (safeMaxNumberOfOTokens * 160) / 200
. Note down thenumOptions
that you want to create. -
Once you know the
numOptions
you want to create and the collateral you want to supply, switch over to the Write Contract Tab.- Ensure you connect your wallet to the etherscan page.
-
If this is your first time creating an option from the current account search for the
CreateETHCollateralOption
function.- Fill out the
payableAmount
in ETH (not wei this time, this is an Etherscan quirk). - Fill out the
numOptions
with the value that you calculated based on your desired collateralization ratio in step 4. - Fill out the address that you want to send the newly created options to in the receiver field. This is most likely your wallet address.
- Fill out the
-
If you have already created options from the current account search for the
addETHCollateralOption
function. (Not to be confused withaddETHCollateral
function)- Fill out the payableAmount in ETH (not wei this time, this is an Etherscan quirk).
- Fill out the numOptions with the value that you calculated based on your desired collateralization ratio in step 4.
- Fill out the address that you want to send the newly created options to in the receiver field. This is most likely your wallet address.
-
Hit write and then confirm the transaction through your wallet. You have created the options! You can now either
- Sell them on uniswap OR
- Add them to the uniswap ocUSDC pool. (You will need to search for the oToken with the address below)The ocUSDC address is here: 0x8ed9f862363ffdfd3a07546e618214b6d59f03d4