fix(stablecoin): derive controller gain scale

This commit is contained in:
Ricardo Guilherme Schmidt
2026-07-03 09:42:45 -03:00
parent 61c3f6299f
commit 12ca678d01
2 changed files with 17 additions and 4 deletions
@@ -58,6 +58,10 @@ impl Ids {
AccountId::new([8; 32])
}
fn oracle_source() -> AccountId {
AccountId::new([10; 32])
}
fn redemption_controller() -> AccountId {
compute_redemption_controller_pda(
Self::stablecoin_program(),
@@ -189,7 +193,7 @@ impl Accounts {
quote_asset: Ids::collateral_definition(),
price,
timestamp,
source_id: String::from("twap"),
source_id: Ids::oracle_source(),
confidence_interval: 0,
}),
nonce: Nonce(0),