From 23af689201bc42ffc0b1e838aada30f941ac76e4 Mon Sep 17 00:00:00 2001 From: RobertMCForster Date: Mon, 8 Oct 2018 12:54:03 -0500 Subject: [PATCH] Added changeUrls Function --- contracts/Investment.sol | 13 +++++++++++++ contracts/PostAuditTest.sol | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/contracts/Investment.sol b/contracts/Investment.sol index fdf2a2e..d726d4f 100644 --- a/contracts/Investment.sol +++ b/contracts/Investment.sol @@ -279,6 +279,19 @@ contract Investment is Ownable, usingOraclize { bank = Bank(_bank); userData = UserData(_userData); } + + /** + * @dev Needed in case our crypto symbols change or to switch from CryptoCompare (if site is compatible). + * @param _coinUrl The CryptoCompare API URL of the COIN token. + * @param _cashUrl The CryptoCompare API URL of the CASH token, if there is one. + **/ + function changeUrls(string _coinUrl, string _cashUrl) + external + onlyOwner + { + coinUrl = _coinUrl; + cashUrl = _cashUrl; + } /** ********************************* Modifiers ************************************* **/ diff --git a/contracts/PostAuditTest.sol b/contracts/PostAuditTest.sol index c16cafd..a6a5acd 100644 --- a/contracts/PostAuditTest.sol +++ b/contracts/PostAuditTest.sol @@ -280,6 +280,19 @@ contract PostAuditTest is Ownable//, usingOraclize bank = Bank(_bank); userData = UserData(_userData); } + + /** + * @dev Needed in case our crypto symbols change or to switch from CryptoCompare (if site is compatible). + * @param _coinUrl The CryptoCompare API URL of the COIN token. + * @param _cashUrl The CryptoCompare API URL of the CASH token, if there is one. + **/ + function changeUrls(string _coinUrl, string _cashUrl) + external + onlyOwner + { + coinUrl = _coinUrl; + cashUrl = _cashUrl; + } /** ********************************* Modifiers ************************************* **/