Upgraded Q -> M from 307 [1655245513660] #345
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
upgraded by judge
Judge has assessed an item in Issue #307 as Medium risk. The relevant finding follows:
(Low)
feeRate
can be modified for existing vaultsfeeRate
is a parameter that controls the fee applied on exercise. It can be set by the function:So it can be changed by the owner at any time, changing also the fee payed by existing vaults.
Proof of concept
Alice is a trader looking for a delta neutral position on her NFTs. She opens a vault with strike 10 ETH and fee 0.5%. She's happy getting 9.95 ETH if the option is exercised. During the call lifetime the fee gets increased up to 1%. Now Alice will get 9.90 ETH, an amount which may bring her EV negative.
Recommendations
It's suggested to save
feeRate
into a vault struct duringcreateVault
orbuyOption
. This value can then be used duringexercise
instead of the global variable.The text was updated successfully, but these errors were encountered: