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

test: initial swap pass #2

Merged
merged 1 commit into from
Oct 26, 2024
Merged

test: initial swap pass #2

merged 1 commit into from
Oct 26, 2024

Conversation

pegahcarter
Copy link
Collaborator

@pegahcarter pegahcarter commented Oct 23, 2024

https://fraxscan.com/address/0xEdC5087033c8C0561919E6eD7DCA32b40538929f#code

  • If the swap succeeds, recipient receives native FRAX.  For this example, minAmountOut = 0.
    LZ scan

  • If the swap fails, recipient receives LZ FRAX instead.  For this example, minAmountOut > amountIn. LZ scan

@pegahcarter pegahcarter merged commit 78d9d6d into master Oct 26, 2024
1 check failed
@pegahcarter pegahcarter deleted the test/initial-swap branch October 26, 2024 00:12
pegahcarter added a commit that referenced this pull request Nov 13, 2024
* deploy MockReceiver (#1)

* deploy MockReceiver

* feat: store sender

* chore: fmt

* test: initial swap on bridge tx (#2)

* feat: unwrap frxEth (#3)

* feat: unwrap frxEth

* fix: outdated references

* fix: receive ether

* chore: fmt

* chore: rm counter

* chore: fmt

* chore(build): comment out test

* Feat/swap and send (#4)

* feat: support all 6 OFTs

* feat: support all 6 OFTs

* feat: swapAndSend()

* fix(swapAndSend): send ETH, refund extra, wrap frxETH

* chore: fmt

* fix: rm exchange amountOut requirement

* feat: upgradeable MockReceiver

* feat: estimateAmountToRebalance()

* refactor: passable min pct required to rebalance

* feat: submitSendWithCompose in TS

* chore: rename MockReceiver, name variables

* chore: missing file rename

* chore: mispelled filename

* feat: EthereumNativeBridgeComposer, LZCurveAMO

* feat: amos

* refactor: rm frxEth

* fix: variable usage, naming

* feat: scripts

* feedback
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.

1 participant