From dbf332b06e1a63b838be88053821219b84169dbf Mon Sep 17 00:00:00 2001 From: Benjamin Bollen Date: Wed, 7 Aug 2024 19:52:12 +0200 Subject: [PATCH] (proxy): make proxy no longer payable, because they should never receive xDAI --- src/proxy/Proxy.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/proxy/Proxy.sol b/src/proxy/Proxy.sol index 9265bec..2b4e61d 100755 --- a/src/proxy/Proxy.sol +++ b/src/proxy/Proxy.sol @@ -27,7 +27,9 @@ contract Proxy { } /// @dev Fallback function forwards all transactions and returns all received return data. - fallback() external payable { + /// The fallback function is not payable because at no plpointace in Circles do these proxy contracts + /// need to receive xDAI (on Gnosis Chain, or Ether if they are deployed on Ethereum) + fallback() external { // solhint-disable-next-line no-inline-assembly assembly { let _singleton := sload(0)