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

[main][feat] Upgrade executor #140

Merged
merged 5 commits into from
Jan 19, 2024
Merged

[main][feat] Upgrade executor #140

merged 5 commits into from
Jan 19, 2024

Conversation

alpanaca
Copy link
Collaborator

@alpanaca alpanaca commented Dec 6, 2023

Description

  • Add option to skip exposure check
  • Add slippage control from manager

Why?

ChangeLogs:

Link to story (if available)

@alpanaca alpanaca requested a review from jr-alpaca December 6, 2023 09:49
test/pcs-v3-executor-01/PCSV3Executor01_Swap.t.sol Outdated Show resolved Hide resolved
test/pcs-v3-executor-01/PCSV3Executor01_Swap.t.sol Outdated Show resolved Hide resolved
@@ -596,4 +618,9 @@ contract PCSV3Executor01 is Executor {
vaultOracle = PancakeV3VaultOracle(_vaultOracle);
emit LogSetVaultOracle(_vaultOracle);
}

function setSkipExposureChecks(address _vaultToken, bool _skip) external onlyOwner {
skipExposureChecks[_vaultToken] = _skip;
Copy link
Contributor

Choose a reason for hiding this comment

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

might be a good ideal to check if the _vaultToken actually exist.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good to have but not necessary. If vaultToken doesn't exist, it would fail during manage anyway.

@alpanaca alpanaca requested a review from wow-alpaca January 16, 2024 05:33
@alpanaca alpanaca merged commit 72a029b into main Jan 19, 2024
1 check failed
@alpanaca alpanaca deleted the feat/upgrade-executor branch January 19, 2024 06:17
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