-
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
Follow Up Enhancements #143
Comments
@ubosshivaditya I want to work on this issue. How do I being? Could you provide a good starting point for this ? |
Certainly! I'd be happy to help you get started on this issue. Here's a good starting point for implementing the requested changes:
Here's a basic pseudocode outline to get you started: class DaemonDisqualifier {
// ... existing code ...
async onIssueAssigned(issue: Issue) {
if (this.isPullRequestRequired(issue)) {
await this.startPullRequestCountdown(issue);
}
}
async startPullRequestCountdown(issue: Issue) {
// Set a timer for X hours
// If PR not opened within X hours, disqualify assignee
}
isPullRequestRequired(issue: Issue): boolean {
// Check issue labels or body for PR requirement
}
async checkActivity(issue: Issue) {
// Only consider activity from the assignee
const assigneeActivity = await this.getAssigneeActivity(issue);
if (!this.isActivitySufficient(assigneeActivity)) {
await this.issueWarning(issue);
}
}
async getAssigneeActivity(issue: Issue) {
// Fetch and filter activity to only include assignee's actions
}
// ... implement other necessary methods ...
} Remember, this is just a starting point. You'll need to flesh out these methods and integrate them with the existing codebase. As you work, make sure to commit your changes regularly and update your pull request. If you have any questions or need clarification on any part of the implementation, feel free to ask. Good luck with your work on this issue! |
@ubosshivaditya Can you check the code and verify if everything is correct https://www.github.com/ubiquity/ubiquity-dollar/blob/0a230f977ad91bbfb01dd28bc1d2ea77faed5237/packages/contracts/src/dollar/libraries/LibUbiquityPool.sol |
Hi @sshivaditya2019, I've reviewed the
Example Enhancement: // Adding a reentrancy guard
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract LibUbiquityPool is ReentrancyGuard {
// Existing code...
function addLiquidity(uint256 amount) external nonReentrant {
// Function logic...
}
// Existing code...
} Implementing the Overall, the contract structure looks solid, but addressing the points above will enhance its security, efficiency, and maintainability. Let me know if you need further assistance or specific clarifications on any part of the code! |
Follow up should be on pull request so that they don't reply under issue and get paid for it.
If there isn't a pull request open in time for the warning, automatically disqualify them (they should open a draft pull as soon as they self assign)
Must be configurable since some tasks are not coding related.
If pull isn't required then follow up under issue as we do now.
"activity which should be considered is only the one from the assignees themselves. I believe currently any activity from anyone is considered in the events."
Orginally Posted in Link
The text was updated successfully, but these errors were encountered: