Skip to content

Commit

Permalink
add fix back in
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee committed Nov 22, 2023
1 parent 651cbe6 commit 9f32e90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ contract GeneralDistributionAgreementV1 is AgreementBase, TokenMonad, IGeneralDi
}

// you cannot distribute if admin is not equal to the ctx.msgSender
if (!pool.distributionFromAnyAddress()) {
if (requestedFlowRate > 0 && !pool.distributionFromAnyAddress()) {
if (pool.admin() != currentContext.msgSender) {
revert GDA_DISTRIBUTE_FROM_ANY_ADDRESS_NOT_ALLOWED();
}
Expand Down

0 comments on commit 9f32e90

Please sign in to comment.