Skip to content

Commit

Permalink
init (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyRo1 authored Feb 15, 2024
1 parent 42dd63b commit eb04496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/oracle/oracle.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,9 @@ mod Oracle {
let existing_pair = self.oracle_pairs_storage.read(pair_id);
assert(existing_pair.id != 0, 'No pair recorded');
self.oracle_pairs_storage.write(pair_id, pair);
self
.oracle_pair_id_storage
.write((pair.quote_currency_id, pair.base_currency_id), pair.id);
self.emit(Event::UpdatedPair(UpdatedPair { pair: pair }));
return ();
}
Expand Down

0 comments on commit eb04496

Please sign in to comment.