@@ -217,7 +217,8 @@ contract MainnetController is AccessControl {
217217 /**********************************************************************************************/
218218
219219 function setMintRecipient(uint32 destinationDomain, bytes32 mintRecipient)
220- external onlyRole (DEFAULT_ADMIN_ROLE)
220+ external
221+ onlyRole(DEFAULT_ADMIN_ROLE)
221222 {
222223 mintRecipients[destinationDomain] = mintRecipient;
223224 emit MintRecipientSet(destinationDomain, mintRecipient);
@@ -237,7 +238,9 @@ contract MainnetController is AccessControl {
237238 /**********************************************************************************************/
238239
239240 function mintUSDS(uint256 usdsAmount)
240- external onlyRole (RELAYER) rateLimited (LIMIT_USDS_MINT, usdsAmount)
241+ external
242+ onlyRole(RELAYER)
243+ rateLimited(LIMIT_USDS_MINT, usdsAmount)
241244 {
242245 // Mint USDS into the buffer
243246 proxy.doCall(
@@ -253,7 +256,9 @@ contract MainnetController is AccessControl {
253256 }
254257
255258 function burnUSDS(uint256 usdsAmount)
256- external onlyRole (RELAYER) cancelRateLimit (LIMIT_USDS_MINT, usdsAmount)
259+ external
260+ onlyRole(RELAYER)
261+ cancelRateLimit(LIMIT_USDS_MINT, usdsAmount)
257262 {
258263 // Transfer USDS from the proxy to the buffer
259264 proxy.doCall(
@@ -331,7 +336,9 @@ contract MainnetController is AccessControl {
331336
332337 // NOTE: !!! Rate limited at end of function !!!
333338 function redeemERC4626(address token, uint256 shares)
334- external onlyRole (RELAYER) returns (uint256 assets )
339+ external
340+ onlyRole(RELAYER)
341+ returns (uint256 assets)
335342 {
336343 // Redeem shares for assets from the token, decode the resulting assets.
337344 // Assumes proxy has adequate token shares.
@@ -388,7 +395,11 @@ contract MainnetController is AccessControl {
388395 function requestRedeemERC7540(address token, uint256 shares)
389396 external
390397 onlyRole(RELAYER)
391- rateLimitedAsset (LIMIT_7540_REDEEM, token, IERC7540 (token).convertToAssets (shares))
398+ rateLimitedAsset(
399+ LIMIT_7540_REDEEM,
400+ token,
401+ IERC7540(token).convertToAssets(shares)
402+ )
392403 {
393404 // Submit redeem request by transferring shares
394405 proxy.doCall(
@@ -435,7 +446,9 @@ contract MainnetController is AccessControl {
435446
436447 // NOTE: !!! Rate limited at end of function !!!
437448 function withdrawAave(address aToken, uint256 amount)
438- external onlyRole (RELAYER) returns (uint256 amountWithdrawn )
449+ external
450+ onlyRole(RELAYER)
451+ returns (uint256 amountWithdrawn)
439452 {
440453 IAavePool pool = IAavePool(IATokenWithPool(aToken).POOL());
441454
@@ -495,19 +508,25 @@ contract MainnetController is AccessControl {
495508
496509 // Note that Ethena's mint/redeem per-block limits include other users
497510 function prepareUSDeMint(uint256 usdcAmount)
498- external onlyRole (RELAYER) rateLimited (LIMIT_USDE_MINT, usdcAmount)
511+ external
512+ onlyRole(RELAYER)
513+ rateLimited(LIMIT_USDE_MINT, usdcAmount)
499514 {
500515 _approve(address(usdc), address(ethenaMinter), usdcAmount);
501516 }
502517
503518 function prepareUSDeBurn(uint256 usdeAmount)
504- external onlyRole (RELAYER) rateLimited (LIMIT_USDE_BURN, usdeAmount)
519+ external
520+ onlyRole(RELAYER)
521+ rateLimited(LIMIT_USDE_BURN, usdeAmount)
505522 {
506523 _approve(address(usde), address(ethenaMinter), usdeAmount);
507524 }
508525
509526 function cooldownAssetsSUSDe(uint256 usdeAmount)
510- external onlyRole (RELAYER) rateLimited (LIMIT_SUSDE_COOLDOWN, usdeAmount)
527+ external
528+ onlyRole(RELAYER)
529+ rateLimited(LIMIT_SUSDE_COOLDOWN, usdeAmount)
511530 {
512531 proxy.doCall(
513532 address(susde),
@@ -644,7 +663,9 @@ contract MainnetController is AccessControl {
644663 // NOTE: The param `usdcAmount` is denominated in 1e6 precision to match how PSM uses
645664 // USDC precision for both `buyGemNoFee` and `sellGemNoFee`
646665 function swapUSDSToUSDC(uint256 usdcAmount)
647- external onlyRole (RELAYER) rateLimited (LIMIT_USDS_TO_USDC, usdcAmount)
666+ external
667+ onlyRole(RELAYER)
668+ rateLimited(LIMIT_USDS_TO_USDC, usdcAmount)
648669 {
649670 uint256 usdsAmount = usdcAmount * psmTo18ConversionFactor;
650671
@@ -668,7 +689,9 @@ contract MainnetController is AccessControl {
668689 }
669690
670691 function swapUSDCToUSDS(uint256 usdcAmount)
671- external onlyRole (RELAYER) cancelRateLimit (LIMIT_USDS_TO_USDC, usdcAmount)
692+ external
693+ onlyRole(RELAYER)
694+ cancelRateLimit(LIMIT_USDS_TO_USDC, usdcAmount)
672695 {
673696 // Approve USDC to PSM from the proxy (assumes the proxy has enough USDC)
674697 _approve(address(usdc), address(psm), usdcAmount);
0 commit comments