bancorprotocol / contracts-solidity

Bancor Protocol Contracts
Other
841 stars 391 forks source link

Optimize LiquidityProtection.removeLiquidity #585

Closed barakman closed 3 years ago

barakman commented 3 years ago
  1. Verify the average rate deviation at the beginning of function LiquidityProtection.removeLiquidity instead of half-way through.
  2. Some coding reorganization (merge internal function reserveTokenRates into internal function packRates).