Skip to content
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

V2 Optimizations #1

Open
sudo-owen opened this issue Jan 22, 2021 · 4 comments
Open

V2 Optimizations #1

sudo-owen opened this issue Jan 22, 2021 · 4 comments

Comments

@sudo-owen
Copy link

sudo-owen commented Jan 22, 2021

  1. Use CloneFactory to deploy XTokens. Check for whitelisted deployed addresses in XStore to prevent issues.
    DONE, pending merge approval.
  2. Merge setters into XStore so that one setter can take in a code and modify the appropriate param. Ditto for the NFTX controller.
  3. Might be easiest to just make vaults public and remove all of the extra get functions. No need for getVault then either.
  4. Remove xTokenAddress and nftAddress in the Vault struct because you can get them by looking at IXToken and IERC721 and using address(IXToken) etc.
  5. Better packing of variables in Vault struct to allow for dense representation. (Compiler optimization likely already does this).
  6. No need for initOwnable to be called in most cases. (Contracts inheriting from Ownable auto-set msg.sender to be owner.)
  7. RandNonce in XStore seems to do nothing? (And also isn't random?)
@sudo-owen
Copy link
Author

sudo-owen commented Feb 17, 2021

Desired goals for v2:

  1. Allow anyone to wrap ERC-721
  2. Allow anyone to wrap ERC-1155
  3. Provide additional ways of routing liquidity for NFTs (powered by 0x, p2p, etc.)
  4. Value capture for NFTX holders, fee to redeem specifically
  5. Integrate AMM liquidity provisioning directly through our contracts
  6. VRF integration for 4)
  7. Additional products built on top of v2 (lootboxes, gift cards, etc.)
  8. Smarter allow/deny lists

@sudo-owen
Copy link
Author

@sudo-owen
Copy link
Author

Bonding curve for deposits, allows for liq

@sudo-owen
Copy link
Author

Let eligibility be deferred to an oracle that takes in id and returns a bool?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant