Skip to content
This repository was archived by the owner on Oct 3, 2026. It is now read-only.

Feat/sy without k pin - #140

Merged
kinrezC merged 15 commits into
feat/v0.3.0from
feat/SY-without-k-pin
Apr 26, 2024
Merged

kinrezC merged 15 commits into
feat/v0.3.0from
feat/SY-without-k-pin

Conversation

@kinrezC

@kinrezC kinrezC commented Apr 26, 2024

Copy link
Copy Markdown
Contributor

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 thread src/DFMM.sol
Comment on lines +266 to +268
IStrategy(_pools[poolId].strategy).postSwapHook(
msg.sender, poolId, _pools[poolId], state.postSwapHookData
);

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread src/DFMM.sol Outdated
downscaleUp
} from "./lib/ScalingLib.sol";
import { LPToken } from "./LPToken.sol";
import "forge-std/console2.sol";

Copy link
Copy Markdown
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
@kinrezC
kinrezC deleted the feat/SY-without-k-pin branch April 26, 2024 17:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants