Skip to content

Releases: Phoenix-Protocol-Group/phoenix-contracts

v2.0.0

07 Jun 13:49
a8c2f1b
Compare
Choose a tag to compare

What's Changed

  • Stake every day distribution test migration by @ueco-jb in #387
  • Stake every day distribution by @ueco-jb in #385
  • All: Instance TTL by @gangov in #392
  • Soroban sdk upgrade to stable by @gangov in #394
  • Stake: Try to optimize the withdraw rewards function by @ueco-jb in #395
  • Revert "Stake: Try to optimize the withdraw rewards function" by @ueco-jb in #396
  • All: upgrades all contracts to latest soroban-sdk 22.0.0-rc.3.2 by @gangov in #399
  • Stake: Use saturating sub for the stake age days by @ueco-jb in #401
  • All: adds a new const Symbol for the admin key by @gangov in #400
  • Trader: remove remaining deprecated methods by @gangov in #408
  • updates soroban-sdk to latest by @gangov in #411
  • Stable pool: removes unnecessary input arg by @gangov in #406
  • All: add constructors by @gangov in #412
  • Revert "All: add constructors" by @gangov in #418
  • stable_pool: math by @gangov in #414
  • All: safe math by @gangov in #419
  • adds keys to storage, initialises them with new function by @gangov in #423
  • Factory: test for extending the TTL by @gangov in #426
  • script for vesting by @gangov in #433
  • xyk_pool, stable_pool: withdraw_liquidity - min_a, min_b validation by @gangov in #435
  • Vesting: query_vesting_info now returns the index too by @gangov in #434
  • All: adds query for the cargo pkg version by @gangov in #437
  • Stake: using tag v1.0.0 impl by @gangov in #429
  • pool: test replicating the error when swapping small amounts by @gangov in #442
  • Kalo/update changelog by @gangov in #445
  • Kalo/shell script for query extension by @gangov in #446
  • xyk and stable pool: Allow auto-staking when providing liquidity by @gangov in #449
  • all: admin transition system by @gangov in #448
  • all: change contract error numbers by @gangov in #451
  • Bump up the rustc version on CI to 1.81 by @ueco-jb in #456
  • Factory, Multihop, Pool, Stake: test to migrate from 21.7.7 to 22.0.7 by @gangov in #417
  • allow auto unbond when withdrawing liquidity by @gangov in #454
  • Factory, Trader, Vesting: allow to update contract's state by @gangov in #457
  • All: adds constructors by @gangov in #455
  • All: increasing tarpaulin test coverage by @gangov in #458
  • Stake: update config of state by @gangov in #452
  • All: uses live wasm files in test to update factory by @gangov in #460
  • To tidy up the update script by @ueco-jb in #461

Full Changelog: v1.1.0...v2.0.0

v1.0.0

08 May 02:04
36e2421
Compare
Choose a tag to compare

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

13 Mar 17:05
46bec3e
Compare
Choose a tag to compare

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

17 Jan 13:23
3d723fe
Compare
Choose a tag to compare

What's Changed

  • Multihop and Pair: changes the logic behind the swap() method and it … by @gangov in #142
  • Refactor: rename pair to pool 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

10 Oct 11:02
431c62b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.0...v0.7.0

v0.6.0

20 Sep 16:27
e7e563f
Compare
Choose a tag to compare

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

04 Aug 11:12
c986e29
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0

04 Jul 14:25
080d4ab
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.4.0

v0.3.1

27 Jun 21:29
b71a9c0
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.2.7

22 Jun 17:44
Compare
Choose a tag to compare

Full Changelog: v0.2.3...v0.2.7