-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi,
There are some functions use TransientStorageLib's tstore, tload functions.
What is the advantage of these functions over the classical methods ?
For example rather than saving temporary value we can set permanent value and read it from memory.
protocol/src/core/spoke/BalanceSheet.sol
Lines 263 to 270 in 88ccb68
| function overridePricePoolPerAsset(PoolId poolId, ShareClassId scId, AssetId assetId, D18 value) | |
| external | |
| payable | |
| isManager(poolId) | |
| { | |
| TransientStorageLib.tstore(keccak256(abi.encode("pricePoolPerAsset", poolId, scId, assetId)), value.raw()); | |
| TransientStorageLib.tstore(keccak256(abi.encode("pricePoolPerAssetIsSet", poolId, scId, assetId)), true); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels