Releases: Phoenix-Protocol-Group/phoenix-contracts
Releases · Phoenix-Protocol-Group/phoenix-contracts
v1.0.0
What's Changed
- pool, pool_stable, stake: replace panic! with panic_with_error! by @gangov in #269
- Fix 0 amount bug in spend_allowance by @brson in #272
- stake: Unbond breaks the reward distribution by @gangov in #270
- token: updates as per latest changes from the Soroban team by @gangov in #274
- Update soroban to v20.5.0 | Update rust to 1.77.0 by @ueco-jb in #275
- pool: changes belief price from percent to bps to increase a precision by @gangov in #278
- stake: adds a new test to increase test coverage. Decimal: adds more test to fully cover the code. by @gangov in #279
- Pool: Replace
belief_price
with minimum expected amount by @ueco-jb in #280 - factory, pool, stake: Increase overall test coverage by @gangov in #282
- Stake: verify Curve complexity by @gangov in #283
- Pool: Disable the feature allowing to provide liquidity with a single token by @ueco-jb in #289
- vesting: initial skeleton by @gangov in #267
- Add Audit Report from Veridise to the repository by @ueco-jb in #291
- all contracts: adds update entrypoint by @gangov in #293
- Release version: v1.0.0 by @ueco-jb in #297
New Contributors
Full Changelog: v0.9.0...v1.0.0
v0.9.0
What's Changed
- Update soroban v20.0.3 -> v20.1.0 by @ueco-jb in #193
- Factory: changes the storage type for a couple of helper methods by @gangov in #189
- Pool, Pool-Stable: changes publish topic to be concise by @gangov in #195
- Pool: adds the ability to update max_referral_bps by @gangov in #196
- Pool, Pool-Stable: updates the deploy_stake_contract fn by @gangov in #198
- Decimal: flips the assertion by @gangov in #197
- Pool, Pool-Stable, Curve, Decimal, Phoenix: addresses small issues with documentation and naming by @gangov in #200
- Pool: fixes the invalid access control in the pool contract by @gangov in #188
- Factory: updates the factory contract so that it allows only for whitelisted address to be able to create new liquidity pools by @gangov in #190
- Pool stable: Include AMP parameter in the provide liquidity ; disable tests to adjust them in a follow up by @ueco-jb in #177
- Factory, Multihop, Phoenix: removes lp_wasm_hash from the LiquidityPoolInitInfo struct and adds as a parameter by @gangov in #194
- Phoenix: adds a new macro, that validates that the arguments which it takes are 0..10_000 by @gangov in #199
- Factory: adds a new endpoint to update the accounts, that can utilize factory by @gangov in #202
- Pool stable: adds a fix for the compute_swap method. by @gangov in #233
- Pool: adds a missed part of return_amount argument by @gangov in #238
- Pool and Pool stable: fixes incorrect assignmet of total_fee_bps by @gangov in #235
- Pool: Implement
panic_with_error
macro by @ueco-jb in #206 - Multihop: adds a new parameter to the Swap struct, which is representing every swap's belief price by @gangov in #234
- Multihop: removes unnecessary unwrap of a value by @gangov in #240
- Factory, Stake, Pool, Pool_stable, Decimal, Phoenix: removes unused code by @gangov in #242
- Pool: adds a validation and panic for when shares are equal to zero. by @gangov in #245
- Pool: adds checks for input params inside get_deposit_amounts by @gangov in #246
- Increase coverage by @gangov in #248
- Multihop: addresses an issue where the commission amount is being aggregated, instead of being stored in a vec once for each swap by @gangov in #236
- Stake: adds access control to create_distribution_flow by @gangov in #249
- Pool and Pool stable: adds missing validation of max_spread in do_swap by @gangov in #239
- Factory, Multihop, Pool, Pool_stable, Phoenix: removes the user input for token decimals and adds it as a constant instead by @gangov in #241
- Decimal: adds missing test coverage by @gangov in #244
- Factory, Multihop, Pool, Pool_stable: adds a new parameter for creating liquidity pool - name and symbol by @gangov in #243
- Pool and Pool stable: adds check if the swapped token is actualy one of the two tokens in the liquidity pool. by @gangov in #237
- Pool stable: Fix imports by @ueco-jb in #256
- pool_stable: changes belief price to be bps by @gangov in #258
- Decimal: Fix test with string assertion by @ueco-jb in #261
- Update soroban-sdk to v20.4.0 by @ueco-jb in #262
- Pool stable: update tests by @gangov in #251
- Stake: pay rewards during unbond by @gangov in #170
- 175 factory add query displaying data for given user by @gangov in #176
- pool_stable: adds more contracterrrors by @gangov in #268
- release v0.9.0 by @gangov in #264
Full Changelog: v0.8.0...v0.9.0
v0.8.0
What's Changed
- Multihop and Pair: changes the logic behind the swap() method and it … by @gangov in #142
- Refactor: rename
pair
topool
by @ueco-jb in #143 - Factory: remove tuple from factory query; rename query by @ueco-jb in #144
- Set version 0.7.0 by @ueco-jb in #145
- Factory: create_liquidity_pool now returns an address of the lp created; updates the tests by @gangov in #150
- Refactor: replace errors with panics by @ueco-jb in #153
- 146 extend the tests for multihop swap by @gangov in #148
- Changelog: Move latest updates into unreleased section by @ueco-jb in #155
- Multihop: Simulate swap query by @ueco-jb in #154
- Stake: adds flag to check for already deployed instances of this contract by @gangov in #157
- Factory: initializes the multihop from the initialize method of factory and saves the multihop address in Config by @gangov in #158
- Makefile: update the process to include new multihop dependencies by @ueco-jb in #160
- 156 multihop add transaction chain validation by @gangov in #159
- 56 pair implement referral by @gangov in #161
- Multihop: replaces the hardcoded values for max_belief_price and max_spread_bps by @gangov in #164
- multihop: adds spread_amount into the response of simulate_swap and simulate_reverse_swap by @gangov in #168
- Pool: adds a test for the bug in question, no weird behaviour allthough I used pretty similar values with what's already present in the live environment by @gangov in #171
- 172 improve documentation add readme files by @gangov in #173
- Disable the Referral feature by @ueco-jb in #191
- Update soroban v20.0.3 by @ueco-jb in #174
- Release version: v0.8.0 by @ueco-jb in #192
Full Changelog: v0.7.0...v0.8.0
v0.7.0
v0.6.0
What's Changed
- Stake: create distribution flow by @ueco-jb in #83
- Curve: add
contracttype
macro by @ueco-jb in #86 - 82 092 upgrade refactoring follow up by @gangov in #90
- 89 stake create stake totalstaked variable in storage by @gangov in #94
- Pair: trying to refine the errors, doesn't work as expected by @gangov in #95
- Add script to deploy whole current dex to the futurenet by @ueco-jb in #97
- 93 pair remove redundant slippage check during providing liquidity by @gangov in #96
- Curve: modify
PiecewiseLinear
type to not use tuple by @ueco-jb in #100 - Stake: implement rewards distribution logic by @ueco-jb in #88
- Factory: Add skeleton of factory contract by @ueco-jb in #105
- Factory: fix improper trait implementation by @ueco-jb in #111
- Stable pair: Initialize the contract by @ueco-jb in #108
- Pair: Add deployment of Stake contract during initialization by @gangov in #98
- Decimal: Implement
from_atomics
by @ueco-jb in #115 - Update changelog by @ueco-jb in #117
- Stake: Apply points correction when new user bonds tokens by @ueco-jb in #118
- Phoenix: creates initial sceleton with a single err and a copy of pai… by @gangov in #116
- 106 factory implement initialize and create liquidity pool messages by @gangov in #112
- Factory: remove Pair's initialization through client by @ueco-jb in #122
- Deployment: Use factory in script to deploy liquidity pools by @ueco-jb in #121
- Workflows: removes soroban-cli installation step: by @gangov in #127
- Multihop: skeleton by @gangov in #129
- Factory: enhance query_pool by @gangov in #128
- Factory: adds new query to search for a liquidity pool address by a tuple of Pair. Tests the new functionality. by @gangov in #131
- Upgrade to version 0.6.0; Soroban sdk/protocol 20 by @ueco-jb in #135
New Contributors
Full Changelog: v0.5.0...v0.6.0
v0.5.0
v0.4.0
What's Changed
- Decimal: improve library by @ueco-jb in #55
- Pair: use max spread in bps by @ueco-jb in #57
- Pair: Add update_config message by @ueco-jb in #58
Curve
: distribution curve algorithm by @ueco-jb in #62- Decimal: Replace wee-alloc in favor of soroban's one by @ueco-jb in #63
- CI: Add README coverage badge by @ueco-jb in #64
- Add Coverage badge to the readme by @ueco-jb in #65
- Pair: validate input parameters; fix single asset bug by @ueco-jb in #66
- Pair: add corner case checks and tests by @ueco-jb in #67
- Release v0.4.0 by @ueco-jb in #68
Full Changelog: v0.3.1...v0.4.0
v0.3.1
v0.2.7
Full Changelog: v0.2.3...v0.2.7