@@ -123,7 +123,7 @@ contract FiatSimpleCollections is ITokenURIDescriptor, OwnableUpgradeable {
123123 delete propertyImages[_propertyAddress][_key];
124124 }
125125
126- function getNativePriceInUsdc () internal view returns (uint ) {
126+ function getNativePriceInUsdc () internal view returns (uint256 ) {
127127 IUniswapV2Pair pair = IUniswapV2Pair (uniswapPair);
128128
129129 (uint112 reserve0 , uint112 reserve1 , ) = pair.getReserves ();
@@ -141,7 +141,7 @@ contract FiatSimpleCollections is ITokenURIDescriptor, OwnableUpgradeable {
141141 */
142142 function nativeToFiat () external view returns (uint256 ) {
143143 // get the price of ETH/Matic in USD
144- uint nativePriceUsd = getNativePriceInUsdc ();
144+ uint256 nativePriceUsd = getNativePriceInUsdc ();
145145
146146 // Check fiat value vs USD (ie JPY/USD)
147147 uint256 fiatCurrencyToUsd = uint256 (
@@ -173,7 +173,7 @@ contract FiatSimpleCollections is ITokenURIDescriptor, OwnableUpgradeable {
173173 img.gateway
174174 );
175175
176- uint maticPrice = getNativePriceInUsdc ();
176+ uint256 maticPrice = getNativePriceInUsdc ();
177177
178178 // calculate stake amount in USD
179179 UsdAmount memory stakeViaUsd = UsdAmount ({
@@ -186,8 +186,9 @@ contract FiatSimpleCollections is ITokenURIDescriptor, OwnableUpgradeable {
186186 IPriceOracle (fiatOracle).latestAnswer () * 1e10
187187 );
188188
189- uint stakeInputTargetFiat = (stakeViaUsd.amount / currencyToUsd) * 1e18 ;
190- uint stakeFeeTargetFiat = (stakeViaUsd.fee / currencyToUsd) * 1e18 ;
189+ uint256 stakeInputTargetFiat = (stakeViaUsd.amount / currencyToUsd) *
190+ 1e18 ;
191+ uint256 stakeFeeTargetFiat = (stakeViaUsd.fee / currencyToUsd) * 1e18 ;
191192
192193 // Validate the staking position.
193194 bool valid = img.requiredFiatAmount <= stakeInputTargetFiat &&
0 commit comments