@@ -167,7 +167,7 @@ contract ForeignController is AccessControl {
167167 modifier rateLimitExists (bytes32 key ) {
168168 require (
169169 rateLimits.getRateLimitData (key).maxAmount > 0 ,
170- "ForeignController /invalid-action "
170+ "FC /invalid-action "
171171 );
172172 _;
173173 }
@@ -196,7 +196,7 @@ contract ForeignController is AccessControl {
196196 external
197197 onlyRole (DEFAULT_ADMIN_ROLE)
198198 {
199- require (maxSlippage <= 1e18 , "ForeignController /max-slippage-out-of-bounds " );
199+ require (maxSlippage <= 1e18 , "FC /max-slippage-oob " );
200200 maxSlippages[pool] = maxSlippage;
201201 emit MaxSlippageSet (pool, maxSlippage);
202202 }
@@ -215,7 +215,7 @@ contract ForeignController is AccessControl {
215215 require (
216216 maxTickDelta > 0 &&
217217 maxTickDelta <= UniswapV3Lib.MAX_TICK_DELTA,
218- "ForeignController /max-tick-delta-out-of-bounds "
218+ "FC /max-tick-delta-oob "
219219 );
220220
221221 UniswapV3Lib.UniswapV3PoolParams storage params = uniswapV3PoolParams[pool];
@@ -225,15 +225,15 @@ contract ForeignController is AccessControl {
225225
226226 function setUniswapV3AddLiquidityLowerTickBound (address pool , int24 lowerTickBound ) external onlyRole (DEFAULT_ADMIN_ROLE) {
227227 UniswapV3Lib.UniswapV3PoolParams storage params = uniswapV3PoolParams[pool];
228- require (lowerTickBound >= MIN_TICK && lowerTickBound < params.addLiquidityTickBounds.upper, "ForeignController /lower-tick-out-of-bounds " );
228+ require (lowerTickBound >= MIN_TICK && lowerTickBound < params.addLiquidityTickBounds.upper, "FC /lower-tick-oob " );
229229
230230 params.addLiquidityTickBounds.lower = lowerTickBound;
231231 emit UniswapV3PoolLowerTickUpdated (pool, lowerTickBound);
232232 }
233233
234234 function setUniswapV3AddLiquidityUpperTickBound (address pool , int24 upperTickBound ) external onlyRole (DEFAULT_ADMIN_ROLE) {
235235 UniswapV3Lib.UniswapV3PoolParams storage params = uniswapV3PoolParams[pool];
236- require (upperTickBound > params.addLiquidityTickBounds.lower && upperTickBound <= MAX_TICK, "ForeignController /upper-tick-out-of-bounds " );
236+ require (upperTickBound > params.addLiquidityTickBounds.lower && upperTickBound <= MAX_TICK, "FC /upper-tick-oob " );
237237
238238 params.addLiquidityTickBounds.upper = upperTickBound;
239239 emit UniswapV3PoolUpperTickUpdated (pool, upperTickBound);
@@ -243,7 +243,7 @@ contract ForeignController is AccessControl {
243243 UniswapV3Lib.UniswapV3PoolParams storage params = uniswapV3PoolParams[pool];
244244 // Required due to casting in UniswapV3OracleLibrary.consult
245245 // Limits twapSecondsAgo to approximately 68 years
246- require (twapSecondsAgo < uint32 (type (int32 ).max), "ForeignController /twap-seconds-ago-out-of-bounds " );
246+ require (twapSecondsAgo < uint32 (type (int32 ).max), "FC /twap-seconds-ago-oob " );
247247 params.twapSecondsAgo = twapSecondsAgo;
248248 emit UniswapV3PoolTwapSecondsAgoUpdated (pool, twapSecondsAgo);
249249 }
@@ -259,7 +259,7 @@ contract ForeignController is AccessControl {
259259 function setMaxExchangeRate (address token , uint256 shares , uint256 maxExpectedAssets ) external {
260260 _checkRole (DEFAULT_ADMIN_ROLE);
261261
262- require (token != address (0 ), "ForeignController /token-zero-address " );
262+ require (token != address (0 ), "FC /token-zero-address " );
263263
264264 emit MaxExchangeRateSet (
265265 token,
@@ -436,7 +436,7 @@ contract ForeignController is AccessControl {
436436
437437 require (
438438 _getExchangeRate (shares, amount) <= maxExchangeRates[token],
439- "ForeignController /exchange-rate-too-high "
439+ "FC /exchange-rate-too-high "
440440 );
441441 }
442442
@@ -621,7 +621,7 @@ contract ForeignController is AccessControl {
621621 );
622622
623623 bytes32 recipient = centrifugeRecipients[destinationCentrifugeId];
624- require (recipient != 0 , "ForeignController/centrifuge- id-not-configured " );
624+ require (recipient != 0 , "FC/ id-not-configured " );
625625
626626 ICentrifugeV3VaultLike centrifugeVault = ICentrifugeV3VaultLike (token);
627627
@@ -654,7 +654,7 @@ contract ForeignController is AccessControl {
654654 onlyRole (RELAYER)
655655 rateLimitedAsset (LIMIT_AAVE_DEPOSIT, aToken, amount)
656656 {
657- require (maxSlippages[aToken] != 0 , "ForeignController /max-slippage-not-set " );
657+ require (maxSlippages[aToken] != 0 , "FC /max-slippage-not-set " );
658658
659659 IERC20 underlying = IERC20 (IATokenWithPool (aToken).UNDERLYING_ASSET_ADDRESS ());
660660 IAavePool pool = IAavePool (IATokenWithPool (aToken).POOL ());
@@ -674,7 +674,7 @@ contract ForeignController is AccessControl {
674674
675675 require (
676676 newATokens >= amount * maxSlippages[aToken] / 1e18 ,
677- "ForeignController /slippage-too-high "
677+ "FC /slippage-too-high "
678678 );
679679 }
680680
@@ -780,7 +780,7 @@ contract ForeignController is AccessControl {
780780
781781 function toggleOperatorMerkl (address operator ) external {
782782 _checkRole (RELAYER);
783- require (address (merklDistributor) != address (0 ), "ForeignController /merkl-distributor-not-set " );
783+ require (address (merklDistributor) != address (0 ), "FC /merkl-distributor-not-set " );
784784
785785 MerklLib.toggleOperator (MerklLib.MerklToggleOperatorParams ({
786786 proxy : proxy,
@@ -928,7 +928,7 @@ contract ForeignController is AccessControl {
928928 if (assets == 0 ) return 0 ;
929929
930930 // Zero shares with non-zero assets is invalid (infinite exchange rate).
931- if (shares == 0 ) revert ("ForeignController /zero-shares " );
931+ if (shares == 0 ) revert ("FC /zero-shares " );
932932
933933 return (EXCHANGE_RATE_PRECISION * assets) / shares;
934934 }
0 commit comments