File: MarginTradingHook.sol
72:     modifier refundNative() { 
73:         _;
74:         // refund native token
75:         uint wNativeBal = IERC20(WNATIVE).balanceOf(address(this));
76:         // NOTE: no need receive function since we will use TransparentUpgradeableProxyReceiveETH
77:         if (wNativeBal != 0) IWNative(WNATIVE).withdraw(wNativeBal);
78:         uint nativeBal = address(this).balance;
79:         if (nativeBal != 0) {
80:             (bool success,) = payable(msg.sender).call{value: nativeBal}('');
81:             _require(success, Errors.CALL_FAILED);
82:         }
83:     }
