- 1d0f4fb: - Update the deposit algorithm
- When an error occurs during the simulation process, the state will be rolled back.
- b2a3c15: Upgrade @torch-finance/dex-contract-wrapper to version 0.2.4
- ef506cf: Refactory HopAction type
-
b8dd425: chore: update @torch-finance/dex-contract-wrapper to version 0.2.2 and enhance withdraw logic
- Updated the @torch-finance/dex-contract-wrapper dependency from version 0.2.1 to 0.2.2 in package.json and pnpm-lock.yaml.
- Added validation for the 'mode' parameter in the Withdraw class to ensure it is either 'Single' or 'Balanced'.
- Refactored the handling of withdrawAsset to use Asset.fromJSON for improved consistency and type safety.
- 4c21dd3: chore: update dependencies and refactor schemas in cross-pool simulators
- 7aa959a: Add SimulateHop Interface
- 694c16d: - Add cross-pool simulator
- Support exact deposit/burn amount
- f263dce: update @torch-finance/dex-contract-wrapper to version 0.2.1 in package.json and pnpm-lock.yaml
- 314d2ec: - Update the params and result types of the simulator to be imported from dex-contract-wrapper.
- Add vpBefore and vpAfter fields in swapExactOut.
- 32f39db: When claiming the admin fee, specific rates can be provided. If none are specified, the simulator's existing rate will be used for the deposit.
- bfbea37: When calling
_setRates(), if no rates are specified and the simulator already has a rate, it will return directly. Otherwise, it will calculate a default set of rates using decimals.
- 62e66b3: Added a
ratesinput parameter togetVirtualPrice, allowing users to set a custom rates and view the corresponding virtual price.
- 1ea8ebb: - Updated the Simulator to use
bigintfor calculations instead ofdecimal.- Aligned the input parameters and output results for
deposit,swap, andwithdrawwith the contract'ssimulateget-method. - Enhanced the Simulator creation process to directly utilize parameters from
getPoolData, eliminating the need for any type conversion.
- Aligned the input parameters and output results for
- b288400: update @torch-finance/core version
- 4656254: Run stable swap simulation in Torch Finance with Typescript Only