User Story: Buy an option with an expirationDate GTE to some timestamp #2352
Labels
enhancement
New feature or request
ERTP
package: ERTP
Zoe Contract
Contracts within Zoe
Zoe
package: Zoe
Story
As a user, I want to buy an option and have my purchase be protected by offer safety. I want to be able to specify things that are important to me, such as that the option will not expire until after a specific timestamp. I don't want to have to specify things that are not important to me, such as the invitation handle for a particular option. (This use case also pertains to staking derivatives.)
Status
Currently, a user must specify the exact amount matching the option in order to buy it with offer safety. The user can be told of the exact amount by another user or a contract, but if they are not told, they cannot get offer safety.
Details
The
test-coveredCall.js
file is the best to look at for this use case. Currently, as of 2/5/2021, Dave must specify theoptionAmount
exactly, whereas he might actually only care that theexpirationDate
is after a timestamp, and that thestrikePrice
is under a certain amount, and theunderlyingAssets
are above a certain amount.agoric-sdk/packages/zoe/test/unitTests/contracts/test-coveredCall.js
Line 494 in 559c5ed
Next Steps
Please see the Amount Patterns Implementation Plan issue
The text was updated successfully, but these errors were encountered: