Skip to content

Commit

Permalink
getQuoteView
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaFlores committed Jun 9, 2023
1 parent 9aa9ed5 commit 9dca2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/cryptoshield-app/CryptoShield.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ contract CryptoShield is FunctionsClient, ConfirmedOwner, AutomationCompatibleIn
return assignedReqID;
}

function getQuote(uint256 amount) public returns (uint256, uint256, uint256, uint256, uint256, uint256) {
function getQuote(uint256 amount) public view returns (uint256, uint256, uint256, uint256, uint256, uint256) {
require(!fetching, "CryptoShield: Daily data is being fetched");
int256 currentPriceInt = getLatestPrice();
uint256 currentPrice = currentPriceInt >= 0 ? uint256(currentPriceInt) : 0;
Expand Down

0 comments on commit 9dca2fc

Please sign in to comment.