-
Notifications
You must be signed in to change notification settings - Fork 5
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
Minimum Sell Amounts #93
Conversation
src/facets/AdminFacet.sol
Outdated
function objectMinimumSell(bytes32 _objectId) external view returns (uint256) { | ||
return LibAdmin._objectMinimumSell(_objectId); | ||
} |
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.
Why not make this a getMinimumSell
in the MarketFacet
, setter is already there?
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 was thinking we could make the getters the same name as the variable, and drop the get
prefix, but for consistency with the rest of the codebase we could add the get prefix. I'll move everything to Market.
src/libs/LibAdmin.sol
Outdated
function _objectMinimumSell(bytes32 _objectId) internal view returns (uint256) { | ||
AppStorage storage s = LibAppStorage.diamondStorage(); | ||
return s.objectMinimumSell[_objectId]; | ||
} |
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.
Maybe it makes more sense to put this into LibMarket
?
Implement minimum sell amounts allowed on the marketplace to prevent griefing with really small order amounts.
Mentioned in Immunify 24703.