-
Notifications
You must be signed in to change notification settings - Fork 280
audit patches + improvement #1600
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
607200e
using failedMessage.refundSendParam in refund
shankars99 f4f5703
using transfer on hub for retry and refund and slippage check on retr…
shankars99 281ef47
OFT.send(..,_refundAddress) comment on tx.origin
shankars99 d8c7279
using SafeTransfer
shankars99 431a008
rename: CanRetryWithSwap to CanRetryWithSwapOrRefund
shankars99 e4076b1
gas: optimized _failedGuidState() avoids reading from storage twice
shankars99 fae8a36
using OZ's convertToAsset and convertToShare
shankars99 69c03f0
chore: require OFTs and Vault to have the same tokens
shankars99 cea5b1d
fix comment #14
shankars99 4cc35eb
comments: make clear about slippage #11
shankars99 adcfe55
remove inaccessible functions from interface #9
shankars99 8dac577
improved comments on retry #7
shankars99 b7c7d54
adding nonReentrant on retryWithSwap #5
shankars99 78e4aad
remove unused imports #1
shankars99 ff16730
gas: do not store refundSendParam on retry #17
shankars99 e5c5193
update to match package changes
shankars99 2305ecd
fix: refund
shankars99 2ef95ce
performing refund testing
shankars99 a93eb55
event emission on retry, refund, retryWithSwap
shankars99 f109d4a
update to match packages
shankars99 7c70065
enforcedOptions in retry, refund, and retryWithSwap #19 + cleanup and…
shankars99 d6141e5
update to match package update
shankars99 3d1e8e5
retry and refund are atomic - revert when failedMessageTransfer reverts
shankars99 3983a95
accumulate msg.value supplied in retryWithSwap when sendFailedMessage…
shankars99 4ba8b55
setting prepaidMsgValue to 0 after sending the stored msgValue to REF…
shankars99 dc38170
using _removeDust in _checkSlippage() to be equivalent to OFTCore::_d…
shankars99 7c39294
decouple _checkSlippage() and make it virtual along with _send()
shankars99 55d7b26
remove unnecessary try...catch in retry() and refund()
shankars99 12bdda0
set SendParam.amountLD = vaultAmount globally in retryWitSwap for retry
shankars99 2655e7e
rename arg _oft to match lzCompose definition of _oft and refundOFT
shankars99 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.