Skip to content

Commit f5bc902

Browse files
committed
Create spec and add it on context file
1 parent 65dc004 commit f5bc902

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

on-chain/validators/synth-dolar.ak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fn get_pool_ada(policy_id: PolicyId, inputs: List<transaction.Input>) -> Int {
151151
/// Fetches the ADA/USD raw price and exponent from Pyth Lazer.
152152
///
153153
/// Requires the transaction to include:
154-
/// - A Pyth State NFT reference input (identified by `pythpolicy_id`)
154+
/// - A Pyth State NFT reference input (identified by `pyth_policy_id`)
155155
/// - A 0-ADA withdrawal from the Pyth verify script carrying the signed
156156
/// price message as redeemer — verified by that script, not here.
157157
///
@@ -161,13 +161,13 @@ fn get_pool_ada(policy_id: PolicyId, inputs: List<transaction.Input>) -> Int {
161161
/// For ADA/USD (feed_id=16, exponent=-8):
162162
/// raw_price = 70_000_000 → $0.70 per ADA
163163
fn get_ada_usd_price(
164-
pythpolicy_id: PolicyId,
164+
pyth_policy_id: PolicyId,
165165
ada_usd_feed_id: Int,
166166
tx: Transaction,
167167
) -> (Int, Int) {
168168
// Pull all price updates from the transaction — the Pyth withdraw script
169169
// has already verified the Ed25519 signature by the time we get here.
170-
let updates = pyth.get_updates(pythpolicy_id, tx)
170+
let updates = pyth.get_updates(pyth_policy_id, tx)
171171

172172
// We expect exactly one price update message per transaction.
173173
expect [update] = updates

0 commit comments

Comments
 (0)