Skip to content

feat: implement batch price update functionality#250

Open
lamborghini21 wants to merge 1 commit into
StellarFlow-Network:mainfrom
lamborghini21:feature/batch-price-update
Open

feat: implement batch price update functionality#250
lamborghini21 wants to merge 1 commit into
StellarFlow-Network:mainfrom
lamborghini21:feature/batch-price-update

Conversation

@lamborghini21
Copy link
Copy Markdown

  • Add update_prices_batch(Vec) function for multi-asset price updates
  • Implement AssetPrice and PriceUpdate data structures
  • Add price storage with Map<Symbol, AssetPrice>
  • Enforce minimum 5+ assets per batch for fee efficiency
  • Add get_price() and get_all_prices() query functions
  • Include comprehensive test suite for batch updates
  • Add usage example and updated documentation
  • Maintain admin-only authorization for price updates

Resolves #195: Allow relayer to update 5+ assets in single transaction to save on submission fees

- Add update_prices_batch(Vec) function for multi-asset price updates
- Implement AssetPrice and PriceUpdate data structures
- Add price storage with Map<Symbol, AssetPrice>
- Enforce minimum 5+ assets per batch for fee efficiency
- Add get_price() and get_all_prices() query functions
- Include comprehensive test suite for batch updates
- Add usage example and updated documentation
- Maintain admin-only authorization for price updates

Resolves StellarFlow-Network#195: Allow relayer to update 5+ assets in single transaction to save on submission fees
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 28, 2026

@lamborghini21 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! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contracts | Batch Price Update: Multi-Asset Push

1 participant