-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
6cc2d7e
to
8d00880
Compare
IStrategy(_pools[poolId].strategy).postSwapHook( | ||
msg.sender, poolId, _pools[poolId], state.postSwapHookData | ||
); |
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.
Is it possible to make this a "pre-swap" hook? Could you describe the details of this in the pr more too for reference
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.
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"; |
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.
illegal
temp: working sy branch