From 28214bece738f33f18516f0049a09825d98f719d Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 2 Apr 2020 10:05:14 -0400 Subject: [PATCH] update fx rates --- build/snap_fx.sql | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/build/snap_fx.sql b/build/snap_fx.sql index 07ca5c1..99ed391 100644 --- a/build/snap_fx.sql +++ b/build/snap_fx.sql @@ -1,27 +1,7 @@ -UPDATE - rlarp.osmf_dev -SET - r_rate = .7597 -WHERE - r_currency = 'CA'; - -UPDATE - rlarp.osmf_dev -SET - r_rate = 1 -WHERE - r_currency = 'US'; - -UPDATE - rlarp.osmf_dev -SET - c_rate = .7597 -WHERE - c_currency = 'CA'; - -UPDATE - rlarp.osmf_dev -SET - c_rate = 1 -WHERE - c_currency = 'US'; \ No newline at end of file +------------update fx rates----------------------------------------------------------------- +UPDATE rlarp.osmf_dev SET r_rate = .7518 WHERE r_currency = 'CA' +UPDATE rlarp.osmf_dev SET c_rate = .7518 WHERE c_currency = 'CA' +UPDATE rlarp.osm_pool SET r_rate = .7518 WHERE r_currency = 'CA' +UPDATE rlarp.osm_pool SET value_usd = value_loc * r_rate WHERE r_currency = 'CA' +UPDATE rlarp.osm_pool SET c_rate = .7518 WHERE c_currency = 'CA' +UPDATE rlarp.osm_pool SET cost_usd = cost_loc * c_rate WHERE c_currency = 'CA' \ No newline at end of file