Variables
Find below the variables used in the options protocol.
Last updated
Find below the variables used in the options protocol.
Last updated
The contract calculates and manages the following variables:
The total amount of strike asset balance in an instant before an action takes place. This factor allows visibility on the updated yield generating tokens that may be used as collateral. This variable is not stored on the option contract but on the ERC20 token assigned to be the strike asset.
The total amount of strike asset balance in an instant after an action takes place. This variable is not stored on the option contract but on the ERC20 token assigned to be the strike asset.
The total amount of underlying asset balance in an instant before an action takes place. Underlying assets can also accrue interest. stands for "new".
The total underlying asset balance after the action took place in a block.
Weighted user's funds served as collateral in light of the current option contract situation.
This factor updates the current total amount of User Weighted Balance.
This factor represents the sum of all user's .
Total of options token on the same option series minted by the same user.
Parameter asked at the beginning of minting an option. Describes how many options the user wants to mint and will be used to calculate the collateral requirement further.
The total amount of funds (either in strike asset or underlying asset) that will be transferred to the contract to be locked as collateral to mint the requested option amount.
The variable that will calculate the amount of strike a user will unmint and remove from an unminting of a put. It means how much strike asset the contract will have to send to the user in the unminting process.
The variable that calculates the amount of underlying asset a user will remove from calling the unminting function on a call option token. Meaning how much underlying asset the contract will have to send to the user in the unminting process.
This variable calculates how much of the collateral that a user currently holds will be removed from the process of unminting options.
Find below the variables matching the contract names.
Documentation / Whitepaper
Code
File
strikeReserves
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
underlyingReserves
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
ownerShares
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
totalShares
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
userMintedOptions
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
optionsAmount
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
amountToTransfer
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
strikeToSend
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
underlyingToSend
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol
ownerSharesToReduce
(W)PodPut.sol / (W)PodCall.sol / PodOption.sol