-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature: Stream Token Into Contracts #14
Conversation
packages/dao/src/SuperfluidDao.sol
Outdated
msg.sender | ||
); | ||
|
||
if (voteWeight == 0) { | ||
if (voteWeight <= 0) { |
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.
how can it become negative ?
@@ -37,6 +37,31 @@ contract SuperfluidDaoToken is SuperTokenBase, SuperfluidAdmin { | |||
_initialize(factory, name, symbol); | |||
} | |||
|
|||
function createFlowIntoContract( |
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.
onlyAdmin needed
/// @dev This requires the contract to be a flowOperator for the msg sender. | ||
/// @param token Token to stream. | ||
/// @param flowRate Flow rate per second to stream. | ||
function updateFlowIntoContract( |
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.
onlyAdmin needed
|
||
/// @notice Delete a stream that the msg.sender has open into the contract. | ||
/// @param token Token to quit streaming. | ||
function deleteFlowIntoContract(ISuperToken token) external { |
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.
onlyAdmin needed
Description
Implement flow intro contracts