@@ -279,7 +279,12 @@ contract GeneralDistributionAgreementV1 is AgreementBase, TokenMonad, IGeneralDi
279279 }
280280
281281 /// @inheritdoc IGeneralDistributionAgreementV1
282- function updateMemberUnits (ISuperfluidPool untrustedPool , address memberAddress , uint128 newUnits , bytes calldata ctx )
282+ function updateMemberUnits (
283+ ISuperfluidPool untrustedPool ,
284+ address memberAddress ,
285+ uint128 newUnits ,
286+ bytes calldata ctx
287+ )
283288 external
284289 override
285290 returns (bytes memory newCtx )
@@ -308,7 +313,7 @@ contract GeneralDistributionAgreementV1 is AgreementBase, TokenMonad, IGeneralDi
308313 newCtx = ctx;
309314
310315 // NOTE: In GDA.poolSettleClaim, it checks whether pool is created by the token.
311- pool .claimAll (memberAddress);
316+ untrustedPool .claimAll (memberAddress);
312317 }
313318
314319 /// @inheritdoc IGeneralDistributionAgreementV1
@@ -806,35 +811,35 @@ contract GeneralDistributionAgreementV1 is AgreementBase, TokenMonad, IGeneralDi
806811 // TODO _poolIsTrustedByItsSuperToken(msg.sender)
807812 returns (bool )
808813 {
809- ISuperfluidPool untrustedPool = msg .sender ;
814+ ISuperfluidPool untrustedPool = ISuperfluidPool ( msg .sender ) ;
810815
811- if (token.isPool (this , untrustedPool) == false ) {
816+ if (token.isPool (this , address ( untrustedPool) ) == false ) {
812817 revert GDA_ONLY_SUPER_TOKEN_POOL ();
813818 }
814819 bytes memory eff = abi.encode (token);
815- _setUIndex (eff, msg .sender , _getUIndex (eff, untrustedPool).mappend (p));
816- _setPoolAdjustmentFlowRate (eff, untrustedPool, true , /* doShift? */ p.flow_rate (), t);
820+ _setUIndex (eff, msg .sender , _getUIndex (eff, address ( untrustedPool) ).mappend (p));
821+ _setPoolAdjustmentFlowRate (eff, address ( untrustedPool) , true , /* doShift? */ p.flow_rate (), t);
817822 return true ;
818823 }
819824
820825 function poolSettleClaim (ISuperfluidToken superToken , address claimRecipient , int256 amount )
821826 external
822827 returns (bool )
823828 {
824- ISuperfluidPool untrustedPool = msg .sender ;
829+ ISuperfluidPool untrustedPool = ISuperfluidPool ( msg .sender ) ;
825830
826- if (superToken.isPool (this , untrustedPool) == false ) {
831+ if (superToken.isPool (this , address ( untrustedPool) ) == false ) {
827832 revert GDA_ONLY_SUPER_TOKEN_POOL ();
828833 }
829834
830- _doShift (abi.encode (superToken), untrustedPool, claimRecipient, Value.wrap (amount));
835+ _doShift (abi.encode (superToken), address ( untrustedPool) , claimRecipient, Value.wrap (amount));
831836 return true ;
832837 }
833838
834839 function tokenEmitPseudoTransfer (ISuperfluidToken superToken , address from , address to ) external {
835- ISuperfluidPool untrustedPool = msg .sender ;
840+ ISuperfluidPool untrustedPool = ISuperfluidPool ( msg .sender ) ;
836841
837- if (superToken.isPool (this , untrustedPool) == false ) {
842+ if (superToken.isPool (this , address ( untrustedPool) ) == false ) {
838843 revert GDA_ONLY_SUPER_TOKEN_POOL ();
839844 }
840845
0 commit comments