mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-26 22:51:14 +00:00
fix(stablecoin): derive controller gain scale
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user