-
Notifications
You must be signed in to change notification settings - Fork 302
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
Advance settings - isRetired #754
Comments
and what should that status do exactly? Setting it is easy but defining how an asset marked as |
@kremalicious Yeah that's a good point that you make. I think the main objective here is to create an option to "soft delete" assets. We could say that the |
I think that option is valuable for everybody if it behaves almost the same as purgatory assets but with different messaging, as we are seeing requests for assets to be put in purgatory which are not fitting its intention as @DMATS & @realdatawhale encountered. So
We have to be careful to not introduce any new rugpull attack surface here though as publisher could retire asset shortly after people have added lots of liquidity making liquidity providers then believe the asset is completely gone so they don't know how to remove their liquidity if they have not bookmarked the asset. Then we need to decide how deep in the stack the restrictions should be implemented. Can't be restricted on contracts level but provider & libraries could implement checks too. For Aquarius we might want to make it simple and just exclude |
That sounds workable, I think updating Aquarius to exclude In terms of reducing the potential for this to be used for a rug pull attacks, we could help avoid that by encouraging everyone to bookmark the asset after they have added liquidity. For example, the success message could be adapted to say: Another option would be to automatically bookmark the asset on the user's behalf if they have added liquidity to it. |
Hi everyone, thank you for your discussion here. Indeed, we are looking to retire the following datasets. Where can we submit a PR for the same? Thanks in advance! @kremalicious @jamiehewitt15 STUTUR-23 MARRAY-61 FIXED PRICE: SALOTT-11 FIXED PRICE: EGRFIS-84 Thanks a ton! |
People will be able to see the asset in the history page in the pool shares tab so finding the asset will not be a problem. |
after some PM talks:
|
@kremalicious I'm not exactly sure what you mean in your first point, as you say we should add a checkbox to advance settings but not deal with it in this repo (the market)? Do you mean that the checkbox should be implemented in the market but not Ocean.js? |
@kremalicious do you have other use case for status.isRetired flag? |
I think that's a valid point. As we scale up, it won't always be sustainable to do this by reviewing PRs. It requires the reviewer to verify that the GitHub account is associated with the owner of the Ethereum address. That will take time and also introduces the possibility of mistakes and attacks |
@soonhuat I had a chat with @kremalicious about this and the decision is for this to not be implemented in Ocean Market so you will have to proceed to implement it in your fork. For the moment we will continue using purgatory for retiring assets |
@jamiehewitt15 I've opened a PR on purgatory as suggested. Thanks. |
This is not relevant in v4 because we have the |
Ocean OEPs indicate that there should be an
isRetired
attribute in the status object.We therefore need a component for setting this
isRetired
status from within the market. It should go in the advanced settings section and can look visually similar to theisDisabled
component:We also need to ensure that assets that have the
isRetired
status can't be consumedThe text was updated successfully, but these errors were encountered: