Submitted by IllIllI, also found by horsefacts and smilingheretic_
Rebasing tokens are tokens that have each holders balanceof() increase over time. Aave aTokens are an example of such tokens.
If rebasing tokens are used as the vault token, rewards accrue to the vault and cannot be withdrawn by either the option seller or the owner, and remain locked forever.
The amount available for withdrawal comes from an input parameter and is stored for later operations:
https://github.com/code-423n4/2022-05-cally/blob/1849f9ee12434038aa80753266ce6a2f2b082c59/contracts/src/Cally.sol#L173-L200
The amount actually available grows over time and is only known at the time of withdrawal. The option withdrawal/exercise use the original amount:
https://github.com/code-423n4/2022-05-cally/blob/1849f9ee12434038aa80753266ce6a2f2b082c59/contracts/src/Cally.sol#L345
https://github.com/code-423n4/2022-05-cally/blob/1849f9ee12434038aa80753266ce6a2f2b082c59/contracts/src/Cally.sol#L296
Track total amounts currently deposited and allow vault creators to withdraw excess on a pro-rata basis
outdoteth (Cally) acknowledged and commented:
