feat: strategy cooldown, withdrawal receipts, vault caching, gasless deposits - #1264
Merged
Junirezz merged 1 commit intoAug 25, 2026
Conversation
…deposits - Junirezz#1237: Add on-chain strategy switch cooldown with admin-configurable duration, cooldown enforcement in set_strategy and execute_strategy_proposal, frontend cooldown indicator, and backend cooldown endpoint - Junirezz#1236: Enhance withdrawal receipt with explorer links, status polling, confirmation count, ledger info, JSON export, and backend receipts endpoint - Junirezz#1253: Add dedicated vault data caching layer with Redis integration, TTL-based caching for summaries/strategy/user stats, cache invalidation hooks on write operations, and hit/miss metrics - Junirezz#1234: Implement gasless deposits via Soroban-native relayer pattern, gasless relayer whitelist on-chain, frontend useGaslessDeposit hook, and backend gasless-deposits endpoint
|
@OtowoSamuel Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements 4 features across smart contracts, backend, and frontend:
#1237 — Strategy Switching Cooldown Period
StrategySwitchCooldownandLastStrategySwitchTimestorage keysset_strategyandexecute_strategy_proposalset_strategy_switch_cooldown(seconds)strategy_switch_cooldown_remaining()viewstratcd(cooldown check),stratset(strategy changed)GET /vault/strategy/cooldownendpoint with remaining timePOST /vault/strategy(429 on cooldown)#1236 — Detailed Withdrawal Receipt
GET /vault/receiptsendpoint with pagination and wallet filter#1253 — Backend Caching Layer
vaultDataCache.tsmodule with dedicated caching for:#1234 — Gasless Deposits (Soroban-Native)
gasless_deposit(relayer, user, amount)entrypointGaslessRelayerstorage key andset_gasless_relayeradmin functionglessdepevent on successful gasless depositPOST /vault/gasless-depositsendpointuseGaslessDeposithook with signing → submitting → confirming flowCloses
Closes #1237
Closes #1236
Closes #1253
Closes #1234