-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disputable: Support payable actions #593
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of notes, but looking good!
@@ -129,7 +129,7 @@ contract DisputableAragonApp is IDisputable, AragonApp { | |||
*/ | |||
function _newAgreementAction(uint256 _disputableActionId, bytes _context, address _submitter) internal returns (uint256) { | |||
IAgreement agreement = _ensureAgreement(); | |||
return agreement.newAction(_disputableActionId, _context, _submitter); | |||
return agreement.newAction.value(msg.value)(_disputableActionId, _context, _submitter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we shouldn't expose this as a parameter instead; maybe the app takes a cut of ETH itself or etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the app manipulates it, the agreement app won't be able to pay fees, unless the user is sending more than the required amount. However, how would a parameter help here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was imagining the user sending more fees to the app (because of app-specific logic).
As an example, in the case of a registry, maybe you need to stake some additional ETH into the app as well as pay the fee.
The parameter would help here because the app then has control over how much value is sent.
Co-authored-by: Brett Sun <qisheng.brett.sun@gmail.com>
No description provided.