Commit Graph
15 Commits
Author SHA1 Message Date
Andrea Franz 8465803140 feat(stablecoin): add redemption rate controller + clamp constants
closes #167
2026-08-21 13:37:08 +00:00
Andrea Franz 51cb22c863 feat(stablecoin): add current value projection helpers
closes #166
2026-08-21 13:37:08 +00:00
Andrea Franz 0410d83ae4 feat(stablecoin): implement initialize_program host function
closes #163
2026-08-20 14:21:58 +02:00
Andrea Franz 5b67d8d886 feat(stablecoin): add Instruction::InitializeProgram variant
closes #162
2026-08-20 14:21:58 +02:00
Andrea Franz f62444ffa2 refactor(stablecoin): address review on Position migration 2026-08-19 12:30:22 +02:00
Andrea Franz 2d3392393a refactor(stablecoin)!: migrate Position to spec §4.4 shape
closes #161
2026-08-19 12:30:22 +02:00
Andrea Franz ed6e20e11c refactor(stablecoin): simplify RedemptionPriceState PDA domain 2026-08-19 11:53:45 +02:00
Andrea Franz 4e087e6ff6 feat(stablecoin): add RedemptionPriceState account type
closes #160
2026-08-19 11:53:45 +02:00
Andrea Franz d9b7366990 refactor(stablecoin): simplify StabilityFeeAccumulator PDA domain 2026-08-19 11:49:57 +02:00
Andrea Franz 0a44380a70 feat(stablecoin): add StabilityFeeAccumulator account type
closes #159
2026-08-19 11:49:57 +02:00
Andrea Franz 5b82a52c6b feat(stablecoin): add ProtocolParameters account type
closes #158
2026-07-07 10:52:30 +02:00
Andrea Franz e93db419c4 chore(stablecoin): use alloy primitives 2026-06-25 15:52:03 +02:00
Andrea Franz 3eab96a217 feat(stablecoin): add fixed-point math utilities
closes #157
2026-06-25 15:52:03 +02:00
r4bbit 03345db803 refactor(pda): use descriptive string seeds for PDA derivation
Replace the hardcoded numeric byte-stream seeds ([0; 32], [1; 32], ...)
used for domain separation in PDA derivation with descriptive byte-string
constants, mirroring the AMM config account's existing b"CONFIG" seed.

  amm:         [0; 32] -> b"LIQUIDITY_TOKEN"
               [1; 32] -> b"LP_LOCK_HOLDING"
  stablecoin:  [0; 32] -> b"POSITION"
               [1; 32] -> b"POSITION_VAULT"
  twap_oracle: [2; 32] -> b"PRICE_OBSERVATIONS"
               [3; 32] -> b"ORACLE_PRICE_ACCOUNT"
               [4; 32] -> b"CURRENT_TICK_ACCOUNT"

Since the seeds are now variable-length, each compute_*_pda_seed function
builds its hash input with a Vec and extend_from_slice instead of a
fixed-size buffer with offset writes.

Closes #146
2026-06-22 14:12:13 +02:00
r4bbit 3622016e6c refactor: move programs into programs and UIs into apps
This refactors the repository structure as it has grown over time.
2026-05-26 14:05:52 +02:00