Skip to content

Commit

Permalink
Added changeUrls Function
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertMCForster committed Oct 8, 2018
1 parent f03b34b commit 23af689
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions contracts/Investment.sol
Expand Up @@ -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 ************************************* **/

Expand Down
13 changes: 13 additions & 0 deletions contracts/PostAuditTest.sol
Expand Up @@ -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 ************************************* **/

Expand Down

0 comments on commit 23af689

Please sign in to comment.