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

BACK-1618: Inception LRT #731

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

BACK-1618: Inception LRT #731

wants to merge 29 commits into from

Conversation

JackieJoo
Copy link
Contributor

No description provided.

Copy link

linear bot commented Jul 9, 2024

BACK-1618

exchangeData: swapData,
targetExchange: dexParams.vault,
swappedAmountNotPresentInExchangeData: true,
returnAmountPos: undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

Deposit function returns iShares, assume we can use it in the returnAmountPos

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better to skip optimization for this case, since iShares might differ with real amount a user gets

Screenshot 2024-09-10 at 14 44 02

Copy link
Contributor

Choose a reason for hiding this comment

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

I assume that they assumed that input param amount might differ from iShares, but not that iShares might differ from what user (AugustusV6 in out case) received

image

Also, according to this simulation, Augustus received exactly what was passed (+1 wei dust)

deposit: image
balanceOf on Augustus:
image

Also, mint function on the token is simple and doesn't do any roundings
image

Copy link
Contributor

Choose a reason for hiding this comment

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

So, for me looks like we can use returnAmountPos here without problems

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

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

Successfully merging this pull request may close these issues.

3 participants