Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Added SushiBarWrapAdapter #4

Closed

Conversation

nateawelch
Copy link

No description provided.

contract SushiBarWrapAdapter {

/* ============ State Variables ============ */

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove extra line

*
* @param _underlyingToken Address of the component to be unwrapped to
* @param _wrappedToken Address of the wrapped component
* @param _wrappedTokenUnits Total quantity of wrapped units to wrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Total quantity of wrapped units to unwrap - can maybe make a note that this is only xSUSHI

*
* @param _underlyingToken Address of the component to be wrapped
* @param _wrappedToken Address of the wrapped component
* @param _underlyingUnits Total quantity of underlying units to wrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can maybe make note that this can only be SUSHI, same for wrappedToken and xSUSHI

view
returns (address, uint256, bytes memory)
{
require(_underlyingToken == sushiToken, "Must be a valid token pair");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get different error messages for these so it's apparent which one is wrong

view
returns (address, uint256, bytes memory)
{
require(_underlyingToken == sushiToken, "Must be a valid token pair");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Different error messages would be better. Underlying token must be SUSHI or something to that effect

@cgewecke
Copy link
Contributor

Hi @nateawelch!

We are combining public and private repos here this week, moving all development to open source, and this PR has been ported to a new location: set-protocol-v2 56.

To continue you'll need to fork the new repo, checkout the contrib/sushibar-wrap-adapter branch and re-open.

Apologies for the inconvenience and thanks so much for all the work you've done here.

@cgewecke cgewecke closed this Mar 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants