Chain | Name | Address |
---|---|---|
Base | AkronWeightedLVRFeeHook | 0xA45570815dbE7BF7010c41f1f74479bE322D02bd |
Arbitrum | AkronWeightedLVRFeeHook | 0xD221aFFABdD3C1281ea14C5781DEc6B0fCA8937E |
<aside> 💡
Pools with Akron Hook are created from the Balancer’s standard WeightedPoolFactory.
</aside>
Assuming aggregators and solvers have already integrated standard Balancer v3 Weighted Pools from the standard WeightedPoolFactory, the only change to the standard Weighted Pool is the change from standard static fees to Akron dynamic fees.
dynamicSwapFee
(the returned value from calling onComputeDynamicSwapFee
) to the input amount (adjusting for scaling factor of 1e18).
For example, if the dynamicSwapFee
is 0.0001e18 (ie. 0.01%) and input amount is 100e6, then multiply 0.0001e18 (adjusting for scaling factor of 1e18) to 100e6 to get 0.01e6, the dynamic swap fee amount.<Typescript>
https://github.com/Akron-admin/balancer-maths/blob/akron/typescript/src/hooks/akronWeightedLVRFeeHook.ts
https://github.com/Akron-admin/balancer-maths/blob/akron/typescript/src/weighted/AkronWeightedMath.ts
<Solidity>
https://github.com/Akron-admin/balancer-v3-monorepo/blob/Weighted-Hook/pkg/pool-hooks/contracts/AkronWeightedLVRFeeHook.sol
https://github.com/Akron-admin/balancer-v3-monorepo/blob/Weighted-Hook/pkg/pool-hooks/contracts/utils/AkronWeightedMath.sol