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

Feat/sy without k pin #140

Merged
merged 15 commits into from
Apr 26, 2024
Merged

Feat/sy without k pin #140

merged 15 commits into from
Apr 26, 2024

Conversation

kinrezC
Copy link
Contributor

@kinrezC kinrezC commented Apr 26, 2024

temp: working sy branch

@kinrezC kinrezC force-pushed the feat/SY-without-k-pin branch from 6cc2d7e to 8d00880 Compare April 26, 2024 16:55
Comment on lines +266 to +268
IStrategy(_pools[poolId].strategy).postSwapHook(
msg.sender, poolId, _pools[poolId], state.postSwapHookData
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to make this a "pre-swap" hook? Could you describe the details of this in the pr more too for reference

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's post swap because you need to compute the appropriate swap data off chain and once it's validated that becomes the next state, there's nothing you can do preswap here unless you bisect over the nextL which is kind of a nonstarter here imo

src/DFMM.sol Outdated
@@ -13,6 +13,7 @@ import {
downscaleUp
} from "./lib/ScalingLib.sol";
import { LPToken } from "./LPToken.sol";
import "forge-std/console2.sol";
Copy link
Contributor

Choose a reason for hiding this comment

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

illegal

@kinrezC kinrezC requested a review from Alexangelj April 26, 2024 17:51
@kinrezC kinrezC merged commit fbfb58d into feat/v0.3.0 Apr 26, 2024
4 of 5 checks passed
@kinrezC kinrezC deleted the feat/SY-without-k-pin branch April 26, 2024 17:56
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.

2 participants