Skip to content

Inline one time use functions #26

@code423n4

Description

@code423n4

Handle

mics

Vulnerability details

The following functions are used exactly once. Therefore you can inline them and save gas and improve code clearness.

    UniV3Dex.sol, uniV3GetPriceCAvgPriceHAvgPrice
    UniV2Dex.sol, uniV2GetPriceCAvgPriceHAvgPrice
    UniV3Dex.sol, uniV3Buy
    UniV2Dex.sol, uniV2CalSellAmount
    UniV3Dex.sol, uniV3GetAvgPrice
    OpenLevV1Lib.sol, amountToShare
    OpenLevV1Lib.sol, shareToAmount
    UniV2Dex.sol, uniV2GetAvgPrice
    UniV2Dex.sol, uniV2UpdatePriceOracle
    UniV3Dex.sol, initializeUniV3
    UniV3Dex.sol, uniV3SellMul
    UniV3Dex.sol, increaseV3Observation
    UniV2Dex.sol, uniV2SellMul
    UniV2Dex.sol, uniV2CalBuyAmount
    UniV2Dex.sol, uniV2GetPrice
    UniV2Dex.sol, uniV2Buy

Metadata

Metadata

Assignees

No one assigned

    Labels

    G (Gas Optimization)bugSomething isn't workingsponsor acknowledgedTechnically the issue is correct, but we're not going to resolve it for XYZ reasons

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions