-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add divergence check and max slippage #105
Merged
Merged
Changes from 10 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3e2f232
Add divergence check on SwapsExternal
anon-xxs 04d9f21
Add max slippage
anon-xxs fdc7d22
Add minReturn
anon-xxs 4430643
Fix a minor bug
anon-xxs da42111
Update and optimize
anon-xxs b1922a9
Fix some minor issues and keep updated with main branch
anon-xxs b236333
Update PriceFeeds.sol
anon-xxs 9d2a1ec
Update the test script for swap
anon-xxs 44e9705
merge and fix conflict with the latest development branch
cwsnt 9542a2d
Merge with latest development branch
cwsnt bc4760a
Add test cases for swapExternal & checkPriceDivergence with minReturn
cwsnt 3a4687a
Prettier & lint
cwsnt 4cffb55
SwapsExternal Test
smbsp 58fe4d8
Auto format
smbsp b158ee8
merge with latest development branch & fix conflict
cwsnt 9350f44
Format prettier
cwsnt 9983437
Removed an unused param receiverAddress
smbsp 33420a5
fix contract size too large issue
cwsnt 7d36ca6
change LoanTokenLogicStandard contract address on testnet
cwsnt fed2096
Testnet - Redeploying SwapsUser
smbsp 0368996
Reverting incorrect script
smbsp d309686
Revert back the receiver address for swaps external
cwsnt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
393 changes: 241 additions & 152 deletions
393
contracts/connectors/loantoken/LoanTokenLogicStandard.sol
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the case where
rate < sourceToDestSwapRate
is not considered anymore?