Remove oracle migration code from Beta 7
This block was used to migrate users from the old Oracle in payment
settings to the independent Oracle. That's now been completed.
@@ -26,7 +26,6 @@ extern crate arrayvec;
use actix_web::http::Method;
use actix_web::{http, server, App};
-use althea_types::SystemChain;
use docopt::Docopt;
use env_logger;
use openssl_probe;
@@ -178,30 +177,6 @@ fn main() {
info!("logging status {:?}", res);
}
- // remove in beta 9 where this info will be imported from the dao address oracle.
- let payment_settings = SETTING.get_payment_mut();
- let system_chain = payment_settings.system_chain;
- drop(payment_settings);
-
- let mut dao_settings = SETTING.get_dao_mut();
- if let Some(address) = dao_settings.dao_addresses.iter().last() {
- dao_settings.oracle_url = Some(format!("https://updates.althea.net/{}", address));
- } else {
- match system_chain {
- SystemChain::Ethereum => {
- dao_settings.oracle_url = Some("https://updates.altheamesh.com/prices".to_string())
- }
- SystemChain::Xdai => {
- dao_settings.oracle_url =
- Some("https://updates.altheamesh.com/xdaiprices".to_string())
- }
- SystemChain::Rinkeby => {
- dao_settings.oracle_url = Some("https://updates.altheamesh.com/prices".to_string())
- }
- }
- }
- drop(dao_settings);
-
if cfg!(feature = "development") {
println!("Warning!");
println!("This build is meant only for development purposes.");
