You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constants used throughout the protocol are often redeclared. A mismatch between contracts could introduce flaws, such as incorrect slippage protection.
Protocol-wide constants should be declared in a single source file and imported as needed to ensure consistency and prevent the likelihood of a value mismatch.
Examples of redeclared constants are:
ETH
MAX_SLIPPAGE_DENOMINATOR
The text was updated successfully, but these errors were encountered:
roxdanila
changed the title
feat: constants.sol source file
Map out repeated constants in various contracts and put them in a constants.sol source file
May 29, 2024
roxdanila
changed the title
Map out repeated constants in various contracts and put them in a constants.sol source file
Map out repeated constants in various contracts
May 29, 2024
Overview
Constants used throughout the protocol are often redeclared. A mismatch between contracts could introduce flaws, such as incorrect slippage protection.
Protocol-wide constants should be declared in a single source file and imported as needed to ensure consistency and prevent the likelihood of a value mismatch.
Examples of redeclared constants are:
ETH
MAX_SLIPPAGE_DENOMINATOR
The text was updated successfully, but these errors were encountered: