Skip to content

feat: implement get_trade_history in AMM contract (#80)#224

Open
dannyy2000 wants to merge 5 commits intoNetwalls:mainfrom
dannyy2000:implement-trade-history-amm-80
Open

feat: implement get_trade_history in AMM contract (#80)#224
dannyy2000 wants to merge 5 commits intoNetwalls:mainfrom
dannyy2000:implement-trade-history-amm-80

Conversation

@dannyy2000
Copy link
Contributor

  • Defined Trade struct and storage logic
  • Implemented record_trade helper (FIFO 100 entries)
  • Added get_trade_history query function
  • Integrated trade recording into buy_shares and sell_shares
  • Added comprehensive unit tests in amm_test.rs
  • Resolved type mismatches and cleaned up storage keys

closes #80

- Defined Trade struct and storage logic
- Implemented record_trade helper (FIFO 100 entries)
- Added get_trade_history query function
- Integrated trade recording into buy_shares and sell_shares
- Added comprehensive unit tests in amm_test.rs
- Resolved type mismatches and cleaned up storage keys
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.

[Contract] Implement get_trade_history in AMM

1 participant