Skip to content

v0.23.0

Choose a tag to compare

@smardex-bot-account smardex-bot-account released this 21 Nov 10:32
b3c0598

0.23.0 (2024-11-21)

⚠ BREAKING CHANGES

  • the IUsdnProtocol.getActionablePendingActions function takes two additional parameters lookAhead and maxIter, the MAX_ACTIONABLE_PENDING_ACTIONS constant has been replaced with MIN_ACTIONABLE_PENDING_ACTIONS_ITER.
  • IUsdnProtocol.validateOpenPosition has a new return value posId_ with the position ID which could have changed during execution.
  • initiateClose/validateClose/validateOpen now outputs an enum with 3 different values
  • the TimeLimitsUpdated event now have a new closeDelay parameter, the TimeLimits struct now have a new closeDelay parameter, all TimeLimits struct parameters are now of type uint64
  • the order of arguments for IUsdnProtocol.transferPositionOwnership was changed

Features

  • add lookAhead and maxIter parameters to getActionablePendingActions (#701) (179f31e)
  • add reentrancy guard on removeBlockedPendingAction (#694) (e00de48)
  • change the return value of the initiateClose/validateClose/validateOpen functions (#692) (3689a02)
  • delete pUSDN (#697) (81e23fa)
  • protcol: stop fundings during pause period (#678) (dd6fbd7)
  • protocol: add a condition on limits setter (#703) (386e67f)
  • rebalancer close delay (#677) (b8685f2)
  • remove the callbacks in the initialize function (#669) (dee780a)
  • return potentially updated posId in validateOpenPosition (#706) (cd3a0e1)
  • validate-close: add remaining collateral to the vault when data.positionValue < 0 (#679) (b70c6ce)

Bug Fixes

  • bad debt handling in open (#708) (972a700)
  • change typo (#707) (a2691aa)
  • getHighestPopulatedTick now always return the highest populated tick (#705) (ceba279)
  • refund-security-deposit: add reentrency guard (#689) (a0cea30)
  • trigger-rebalancer: clamp the vault balance to 0 when it's added to the pending balance vault (#711) (c4a4635)

Performance Improvements

  • protocol: unchecked mul in positionValue (#696) (aeb5b47)

Code Refactoring

  • consistent ordering of arguments for transferPositionOwnership (#680) (e000f1b)