Description
Soroban persistent state variables (like relayer nodes and asset prices) can suffer rent-based data eviction if their Time-To-Live (TTL) ledger boundaries lapse.
Technical Requirements
-
Implement an explicit check during every price write operation that triggers env.storage().persistent().extend_ttl() for another 10,000 ledgers.
-
Ensure the network relayer account bears the marginal transaction cost of this storage extension dynamically.
-
If you find this implementation useful, please star the project and leave a review! 😊
Description
Soroban persistent state variables (like relayer nodes and asset prices) can suffer rent-based data eviction if their Time-To-Live (TTL) ledger boundaries lapse.
Technical Requirements
Implement an explicit check during every price write operation that triggers
env.storage().persistent().extend_ttl()for another 10,000 ledgers.Ensure the network relayer account bears the marginal transaction cost of this storage extension dynamically.
If you find this implementation useful, please star the project and leave a review! 😊