Skip to main content

set_rate

Function set_rate 

Source
pub fn set_rate<R: IntoRate>(code: String, rate: R)
Expand description

Install (or replace) one exchange rate in the ambient rate context — 1 <code> = rate reference units. The compiled-tier mirror of the set_rate builtin; a fresh process starts with no rates, so a program installs them before any <money> in <currency> conversion.