v1.5.0 farms upgrade, migration (2022-03-01)
Checksums (SHA 256):
- farm_with_lock.abi.json:
d42fe320726299e7dfbc21e772a6a8aba5d7763311d65d14b693098640e7753b
- farm_with_lock.wasm:
9fa90db0c620e2fec0041a357b0bb53842536d3d764caab93309ba3a83c5285c
- farm.wasm:
f795577d60a20685dd9998527775a57d1a6fc7e7b50894693baabdcde81e6309
- farm.abi.json:
d5dd51a13fb9e107099d2961b882e0bd2ada7aafefaf48452c15c4d6e7830eac
- router.wasm:
fdfe69a5465e374657119f77f084f74065eab6ebe1997340f6c6de1f401a253f
- router.abi.json:
2d87de416b9c341d73f70ed3acf82011b18248df1df59c982503e3db737d529c
- farm_v1_2_mock.abi.json:
4442e3083a552c1a87c38cddacc89338fe39931fb8eaeea38a085230a1942249
- farm_v1_2_mock.wasm:
d383a9f3bfd67fe2ffc2da84e0ddbbf3d0e1e6c3bc284674da7c7af2cb771a18
- farm-staking-proxy.abi.json:
ec547795a009cda9442766f395aaae7742cc05c956b7ed3b8ccc744c3a19905a
- farm-staking-proxy.wasm:
6825588b23e1e2d6708bedb01c6a0fca7a6baff25fb38b2943d0c6dfb610c9b1
- farm-staking.wasm:
2a96c8a8bffed517c79763c9fa675b38b9ebd83b890cb5cc5f501fa99cc6f36d
- farm-staking.abi.json:
50de4db3db377632efe7e47da8cb362e26d4ffa83ec5c114cb4c272f9f26056f
- pair.wasm:
030f89fcc3babd507e3c30f6fbb1191448de5b17f943341769a6380f58a14bcc
- pair.abi.json:
22c044a31b0aad5a6c02ed2239315dbef66a4706c1a05c5eea7c07f13a1cd582
- factory.wasm:
6ef3af1d1a314b744a1ae173f87ce13a9ab2048f0385cce86b27203888185eaa
- factory.abi.json:
4c5f910876ddd2c9b8cedfd22a75cd6a3d715b006593dda266ccbc72784bc96d
- proxy_dex.wasm:
ee643653742f18431fc3e012b77d8da2722251a6b2035056e3c291549d5361d8
- proxy_dex.abi.json:
d7ac36676c7755901a06cd1587cb522d57f47d39456a5bc135b2fc269ae08652
- distribution.wasm:
f70f3ffde361d5f1ddb90ffb8016e44d55559ec7e6c6726d47ba4605394c32ed
- distribution.abi.json:
a34bf8dc39c6f34f11efd31081127a4216490c2ecdbdab2d676633952a4c45dc
- price-discovery.wasm:
9b73ac0fe9a6fb466bd460ae0e8a004d43cedf0d4921391c2db9ddf5b5ce42c5
- price-discovery.abi.json:
3df70d2e6fbcfd99615a58b5826818d6122d91ca8bdb925ff32d44ef728fda30
- pair-mock.wasm:
87ef3da7172af6114ae88e675c2e996f1ac712f4c974969cab2ea23f088e4a0a
- pair-mock.abi.json:
9327caf128669efd2de1dc8010b2319f8bb30828c1acc523b588685771ff3b39
What's Changed
- Development by @catalinnnn in #2
- Added mandos tests + small fixes after running tests by @catalinnnn in #3
- Dev/esdt local mint burn by @claudiulataretu in #5
- Staking SC swap add and fixes after manual tests by @catalinnnn in #7
- Automate Toggling of fee by @catalinnnn in #8
- Added invariants. K for Pair and Wegld/Lp Existing Reserves by @catalinnnn in #9
- Renamed and reorganised some endpoints and views by @catalinnnn in #11
- Dev/esdt local mint burn by @claudiulataretu in #12
- Mandos tests for Router by @catalinnnn in #14
- Basic View functions by @catalinnnn in #13
- [Router SC] setLocalRoles does not need tokenId by @catalinnnn in #15
- replaced only owner with require by @catalinnnn in #16
- [Pair SC] old views had no checks for zero values by @catalinnnn in #17
- [Pair SC] Added safety checks after fuzz testing by @catalinnnn in #18
- [Staking SC] Fix remove_pair by @catalinnnn in #19
- added unstake token needed for unbonding by @catalinnnn in #21
- Dev/esdt local mint burn by @claudiulataretu in #20
- Fix after merge by @catalinnnn in #22
- Fixes after reviews by @catalinnnn in #24
- cargo fmt and inline funcs. (forgot to commit) by @catalinnnn in #25
- Fix unbond. Unstaking tokens should be burned by @catalinnnn in #26
- Fixes after reviews by @catalinnnn in #29
- Feat/inter pair swap by @catalinnnn in #30
- Additional checks for swap in case of admin mistakes by @catalinnnn in #31
- New dependencies refactor by @catalinnnn in #32
- Docs and demo by @catalinnnn in #33
- router/ revert using PairTokens struct by @claudiulataretu in #34
- staking/ only Mint and Burn roles are used by @claudiulataretu in #35
- staking/ remove EsdtLocalRoles arguments by @claudiulataretu in #36
- New requirements by @catalinnnn in #37
- additional check against nfts in liquidity pools by @catalinnnn in #38
- Integration with Distrib SC by @catalinnnn in #39
- added view functions that simulate enter/exit farming by @catalinnnn in #40
- add burn option for swap fees by @catalinnnn in #42
- Swap will be disabled by default by @catalinnnn in #41
- added per block rewards minting by @catalinnnn in #43
- Claim farm rewards by @catalinnnn in #44
- Dev/small fixes by @claudiulataretu in #45
- non payable farm by @catalinnnn in #46
- new return data to functions by @catalinnnn in #47
- small fix. Comparison >= vs > by @catalinnnn in #48
- Fix initial liquidity locking by @catalinnnn in #49
- Audit fixing by @catalinnnn in #50
- Audit fixing by @catalinnnn in #52
- Refactor to new framework by @catalinnnn in #51
- Audit fixing by @catalinnnn in #53
- split lib in more modules by @catalinnnn in #54
- New version of framework update by @catalinnnn in #55
- Development by @catalinnnn in #56
- Audit fixing by @catalinnnn in #57
- New farm refactor by @catalinnnn in #58
- New farm refactor by @catalinnnn in #59
- Double APR for lock rewards option by @catalinnnn in #60
- Interaction snippets with latest SC development by @claudiulataretu in #61
- Copied distribution, GitHub actions by @andrei-marinica in #63
- Farm rewards by @catalinnnn in #62
- Audit fixing by @catalinnnn in #64
- Mandos tests by @catalinnnn in #66
- Interaction snippets by @claudiulataretu in #67
- made dex proxy non payable by @catalinnnn in #65
- Audit fixing by @catalinnnn in #68
- Audit fixing by @catalinnnn in #69
- Fix Fee storage amount when block change by @catalinnnn in #70
- View functions by @catalinnnn in #71
- Added require to check for zero values by @catalinnnn in #72
- Storage updates before, Send&Burn after by @catalinnnn in #73
- Refactor to new framework by @catalinnnn in #74
- Audit fixing by @catalinnnn in #75
- Small refactor by @catalinnnn in #76
- add view functions for storage mappers by @claudiulataretu in #77
- Audit fixing by @catalinnnn in #78
- Locked asset refactor by @catalinnnn in #79
- Audit fixing by @catalinnnn in #80
- Audit fixing by @catalinnnn in #83
- fix new clippy warnings by @catalinnnn in #84
- continuous integration - mandos-go by @andrei-marinica in #82
- Update Interaction snippets by @claudiulataretu in #85
- Audit fixing by @catalinnnn in #87
- Docs by @catalinnnn in #86
- stored error message on LP token issue fail by @catalinnnn in #88
- small tweaks by @claudiulataretu in #89
- Avoid Init storage overwrite by @catalinnnn in #90
- new framework function for init params by @catalinnnn in #91
- locked asset issue and local roles endpoints simplifications by @catalinnnn in #92
- Audit fixing by @catalinnnn in #97
- added token supply module by @catalinnnn in #98
- Audit fixing by @catalinnnn in #99
- Farm Token merge by @catalinnnn in #103
- Locked mex merge by @catalinnnn in #104
- Wrapped token merge by @catalinnnn in #105
- Arwen version bump by @catalinnnn in #108
- Feat/upgrade pair by @catalinnnn in #107
- Removed validate functions by @catalinnnn in #109
- fix by @catalinnnn in #110
- reset enter_epoch at each action. lowered default penalty percent by @catalinnnn in #111
- Keep entering epoch for farm tokens when claiming rewards by @claudiulataretu in #112
- buyback and burn mex tokens instead of burn LP by @catalinnnn in #113
- Original enter epoch by @catalinnnn in #114
- feat/token-merge-and-compound-rewards by @catalinnnn in #102
- feat/events by @catalinnnn in #106
- removed penalty on rewards by @catalinnnn in #115
- Aggregate original epochs on compound by @catalinnnn in #116
- Safe Map Mappers by @catalinnnn in #118
- fix upgradable flag on upgrade by @catalinnnn in #127
- Lkmex distribution config by @catalinnnn in #129
- farm: add new view functions for rewards storage by @claudiulataretu in #172
- better error messages by @catalinnnn in #174
- keep entering_epoch on claim and compound by @catalinnnn in #180
- Add more view functions by @claudiulataretu in #186
- Further checks unlock percent by @catalinnnn in #188
- removed duplicated code by @catalinnnn in #189
- 0.20 Multitransfer by @catalinnnn in #187
- Deploy from source by @catalinnnn in #190
- upgrade to 0.20 by @catalinnnn in #185
- cleanup: dex contracts by @catalinnnn in #191
- Mandos rs by @catalinnnn in #197
- Fix lp tokens roles assignment by @claudiulataretu in #196
- upgrade to elrond-wasm 0.21.2, test fix by @andrei-marinica in #198
- Upgrade to elrond-wasm 0.22.0 by @andrei-marinica in #199
- upgrade to elrond-wasm 0.22.1 by @andrei-marinica in #200
- Add view function to get users distributed locked assets by @claudiulataretu in #201
- added even more checks by @catalinnnn in #202
- upgrade to elrond-wasm 0.22.2 by @andrei-marinica in #203
- Add endpoint to set init epoch by @claudiulataretu in #204
- Update main branches in github actions by @claudiu725 in #207
- Optimize pair by @catalinnnn in #205
- Unlock Percent Round up Fix by @catalinnnn in #210
- Use managed vec iter by @claudiu725 in #208
- Wasm Opt by @catalinnnn in #211
- removed token supply module by @catalinnnn in #213
- upgrade to 0.23 by @catalinnnn in #214
- fix schedules on unlock by @catalinnnn in #216
- small refactor by @catalinnnn in #218
- Remove check for init epoch for create and forward lkmex by @claudiulataretu in #222
- Split farms Fix build by @catalinnnn in #233
- Improve vesting system by @catalinnnn in #234
- Pair SC Contexts refactor by @catalinnnn in #232
- Add spreadsheet tests by @claudiu725 in #231
- Add
farm_with_lock
tests by @claudiu725 in #235 - price-discovery by @dorin-iancu in #244
- Initial liquidity by @catalinnnn in #236
- Farm contexts by @catalinnnn in #241
- Extend Vesting Precision by @catalinnnn in #245
- Farm staking standalone by @dorin-iancu in #247
- Safe Price by @catalinnnn in #249
- Upgrade to elrond-wasm 0.27.2 by @andrei-marinica in #253
- Cleanup after upgrade to elrond-wasm 0.27 by @andrei-marinica in #254
- Upgrade to elrond-wasm 0.27.3 by @andrei-marinica in #255
- Bump rust framework version by @claudiulataretu in #259
- Safe price: get state or default by @catalinnnn in #258
- Add test for
aggregated_unlock_schedule
by @claudiu725 in #260 - Minimize number of Milestones upon merge by @catalinnnn in #261
- Migration to v1.4 by @catalinnnn in #251
- Safe price init by @catalinnnn in #262
- Router - Remove Pair by @catalinnnn in #263
- Farm staking with lp by @dorin-iancu in #248
- Mandatory params v1.4 by @catalinnnn in #266
- Removed unused struct field by @catalinnnn in #267
- Permission fixes by @catalinnnn in #268
- Less proxies in PROXY SCs by @catalinnnn in #272
- Fix condition on add liquidity by @catalinnnn in #273
- Fix price discovery setup by @claudiulataretu in #270
- Proxy sc - take payment from one source by @catalinnnn in #274
- farm staking tests by @dorin-iancu in #264
- Optional rewards by @catalinnnn in #277
- Migration test v1.4 by @catalinnnn in #278
- Fix reward view by @catalinnnn in #281
- move compounded rewards to unbond + test by @dorin-iancu in #283
- Feat - Swap A to C by @catalinnnn in #282
- Remove funcs by @catalinnnn in #284
- Merge Main to v1.4 by @catalinnnn in #290
- Cleaner migration 1.4 by @catalinnnn in #286
- staking farm fixes by @dorin-iancu in #288
- staking farm cleanup by @dorin-iancu in #294
- Proxy SC - Fix farming amount by @catalinnnn in #293
- Bot protection by @catalinnnn in #291
- Staking farm fixes by @dorin-iancu in #296
- move contract interactions to different file by @dorin-iancu in #297
- Token merging tests by @dorin-iancu in #298
- Setup doc by @dorin-iancu in #289
- Feat 1.4 merge into main by @catalinnnn in #299
- Fix second token amount by @catalinnnn in #304
- DEX Fuzzer by @psorinionut in #303
- Github actions: sketch release workflow (initial PR) by @andreibancioiu in #309
- Staking fixes by @dorin-iancu in #306
- Fix farm staking proxy sent lptoken by @claudiulataretu in #307
- Upgrade 28 by @alyn509 in #308
- GitHub actions: release by @andreibancioiu in #310
New Contributors
- @andrei-marinica made their first contribution in #63
- @claudiu725 made their first contribution in #207
- @dorin-iancu made their first contribution in #244
- @psorinionut made their first contribution in #303
- @andreibancioiu made their first contribution in #309
- @alyn509 made their first contribution in #308
Full Changelog: https://github.com/ElrondNetwork/sc-dex-rs/commits/vNext