-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: concept for accounting on ai agent mechs when staking #128
Conversation
kupermind
commented
Oct 13, 2023
•
edited
Loading
edited
- Accounting for AI agent mechs specifics when staking services interacting with them.
@@ -161,13 +163,14 @@ abstract contract ServiceStakingBase is ERC721TokenReceiver, IErrorsRegistries { | |||
|
|||
/// @dev ServiceStakingBase constructor. | |||
/// @param _stakingParams Service staking parameters. | |||
/// @param _numNonces Number of service multisig nonces depending on implementation. |
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.
Not sure I follow why we need this
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.
Ok, I see below..
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.
Refactored, no need for that now.
nonces[1] = IAgentMech(agentMech).getRequestsCount(multisig); | ||
} | ||
|
||
/// @dev Checks if the service multisig liveness ratio passes the defined liveness threshold. |
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.
Docstring could explain what exactly liveness means in this context / implementation
function getRequestsCount(address account) external view returns (uint256 requestsCount); | ||
} | ||
|
||
/// @title ServiceStakingMechAgentNativeToken - Smart contract for staking a service with the service interacting wiht |
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.
/// @title ServiceStakingMechAgentNativeToken - Smart contract for staking a service with the service interacting wiht | |
/// @title ServiceStakingMechAgentNativeToken - Smart contract for staking a service with the service interacting with |
doc: intenal audit included Mech and GnosisSameAddress
refactor and chore: addressing internal audit comments