Commit Graph

  • 43536a4dca feat(XPNFTToken): add NFTMetadataGeneratorURL Andrea Franz 2024-10-09 18:36:52 +02:00
  • 9253b0bd55 test(XPNFTToken): add tests to NFTMetadataGeneratorSVG Andrea Franz 2024-10-09 18:21:33 +02:00
  • b5517a2828 test(XPNFTToken): add tests Andrea Franz 2024-10-09 13:28:12 +02:00
  • e4e8c7c505 chore(XPNFTToken): add INFTMetadataGenerator with Base and SVG generator Andrea Franz 2024-10-09 12:49:23 +02:00
  • 7352f8837a feat(XPNFTToken): add XPNFTMetadataGenerator Andrea Franz 2024-10-04 15:18:53 +02:00
  • 7ed87fada9 feat(XPNFTToken): add base XPNFTToken Andrea Franz 2024-10-02 17:21:20 +02:00
  • 8ed7343727 chore(certora): dont wait for results fv/xp-token-conf r4bbit 2024-10-14 11:50:44 +02:00
  • 4edba7ee62 chore(certora): add sumOfBalancesIsTotalStaked invariant fv/sum-of-balances-total-staked r4bbit 2024-10-09 10:23:55 +02:00
  • 74522424e6 chore: update gas reports Andrea Franz 2024-10-10 18:23:11 +02:00
  • 966093e575 chore(XPToken): rename local variables to use the suffix share instead of contribution Andrea Franz 2024-10-10 18:21:21 +02:00
  • b9c34ec48e chore(XPToken): use share instead of contribution in IXPProvider function names Andrea Franz 2024-10-09 10:22:24 +02:00
  • 478174a356 chore(XPToken): add certora base config Andrea Franz 2024-10-08 11:27:22 +02:00
  • 117fc2300e test(XPToken): add tests Andrea Franz 2024-10-08 10:58:36 +02:00
  • 0a5563e387 chore(XPToken): use XP Contribution for providers functions Andrea Franz 2024-10-08 10:57:15 +02:00
  • 4b787d478f chore: update libs Andrea Franz 2024-10-08 10:56:41 +02:00
  • f816755340 feat(XPToken): add base XPToken with IXPProvider interface Andrea Franz 2024-10-02 15:08:05 +02:00
  • 6d541bbeb8 Adding rewards per block with premint rewards_per_block mart1:n 2024-10-11 12:10:35 +01:00
  • 286bfd2ff4 test: add tests for reaching MP limit r4bbit 2024-09-25 16:15:15 +02:00
  • c6aa7169d4 test: add tests for reaching MP limit mp-limit-test r4bbit 2024-09-25 16:15:15 +02:00
  • 0af58f90fb fix: improve precision loss when unstaking and add testso r4bbit 2024-09-23 16:12:11 +02:00
  • a48a050bd8 test: add lockup tests r4bbit 2024-09-23 16:14:01 +02:00
  • 2970e967bd fix: improve precision loss when unstaking and add testso lockup-tests r4bbit 2024-09-23 16:12:11 +02:00
  • b93c66b5e2 test: add lockup tests r4bbit 2024-09-23 16:14:01 +02:00
  • 47440677a8 test: add dedicated tests for smaller scenarios r4bbit 2024-09-23 16:11:14 +02:00
  • d834a4a8fe feat: add StakeVault and implements StakeManager interface into RewardsStreamerMP stake-vault Ricardo Guilherme Schmidt 2024-10-08 15:38:23 -03:00
  • d03e4d6ffe chore(XPNFTToken): add base XPNFTToken xp-nft-token Andrea Franz 2024-10-02 17:21:20 +02:00
  • 982946ca5e chore: add getters for user's balances user-balances-getters Andrea Franz 2024-09-26 17:46:12 +02:00
  • 7d268543c8 fix: improve precision loss when unstaking and add testso unstaking-test r4bbit 2024-09-23 16:12:11 +02:00
  • d54b1ab941 test: add lockup tests r4bbit 2024-09-23 16:14:01 +02:00
  • 826f7077d4 test: add dedicated tests for smaller scenarios add-tests r4bbit 2024-09-23 16:11:14 +02:00
  • 24c3469cd1 chore: make linter and formatter happy r4bbit 2024-09-25 09:50:06 +02:00
  • 532c90f1c2 chore: fix repo name in package.json (#6) Andrea Franz 2024-09-25 10:15:39 +02:00
  • b8f9449a6e chore: make linter and formatter happy linting r4bbit 2024-09-25 09:50:06 +02:00
  • 4ef75621a3 import foundry template (#1) Andrea Franz 2024-09-25 09:39:14 +02:00
  • 0c29aa1adf chore: format using the new prettier config foundry-template-2 Andrea Franz 2024-09-23 16:55:59 +02:00
  • 0871bdfad7 chore: formatting with the new foundry config Andrea Franz 2024-09-23 16:51:52 +02:00
  • 25f44c3037 chore: import foundry-template files Andrea Franz 2024-09-19 12:57:12 +02:00
  • 197262ba79 re-enable and fix all tests on user attributes Andrea Franz 2024-09-18 12:36:58 +02:00
  • 36ef21361c fix tests Andrea Franz 2024-09-18 12:26:48 +02:00
  • a19b122d4f fix rewards calculation with MPs Andrea Franz 2024-09-17 17:58:41 +02:00
  • 9f8a808e07 add test file for RewardsStreamerMP Andrea Franz 2024-09-16 13:43:39 +02:00
  • d9ddfddaab reorder function and introduce updateGlobalState that updates both reward index and global MP Andrea Franz 2024-09-16 13:38:37 +02:00
  • 2aab9a8b8b remove calculation of totalMP and userMP in the user calculations. They are already updated in updateGlobalMP. Andrea Franz 2024-09-16 13:00:55 +02:00
  • c74a2e936c set user.lockUntil to 0 if there's no locking period (in case there was before) Andrea Franz 2024-09-16 13:00:28 +02:00
  • f543722bdf set lastMPUpdatedTime in the constructor to the current block's timestamp Andrea Franz 2024-09-16 12:59:58 +02:00
  • d021a617e2 fix updateUserMP Andrea Franz 2024-09-16 12:42:24 +02:00
  • 6bebb16c6f improve updateGlobalMP Andrea Franz 2024-09-16 12:41:52 +02:00
  • 4a4549dec9 change updateUserRewards to use staked tokens and MPs with the same weight Andrea Franz 2024-09-16 12:40:41 +02:00
  • 4eeec95c9f move getter functions Andrea Franz 2024-09-16 12:39:47 +02:00
  • 54ddaa71f2 change updateRewardIndex to count staked tokens and MP with the same weight Andrea Franz 2024-09-16 12:38:38 +02:00
  • 90250c9ebc fix unstake function Andrea Franz 2024-09-16 12:38:05 +02:00
  • e9ea8102e1 fix calculation in stake function Andrea Franz 2024-09-16 12:37:30 +02:00
  • 912d0bd100 add tests on reward index after staking and unstaking Andrea Franz 2024-09-13 16:36:23 +02:00
  • 99776251c9 update accountedRewards when rewards are distributed Andrea Franz 2024-09-13 16:34:05 +02:00
  • be5cdb42b6 add Rewards Streamer with Multiplier Points Andrea Franz 2024-09-11 15:55:54 +02:00
  • 43088c4551 update README Andrea Franz 2024-09-11 15:55:20 +02:00
  • 6ee5259fb5 update names to use RewardsStreamer Andrea Franz 2024-09-11 15:52:59 +02:00
  • d146e822c2 remove MP from main contract Andrea Franz 2024-09-11 15:41:52 +02:00
  • f239fa48a3 add multiplier points Andrea Franz 2024-09-11 13:24:01 +02:00
  • 51cafba5d6 update README Andrea Franz 2024-09-11 13:23:16 +02:00
  • 7e685a1daf more docs Andrea Franz 2024-09-10 13:05:17 +02:00
  • 927d822dbe Update README.md Andrea Franz 2024-09-10 12:58:36 +02:00
  • f7228c28bd Update README.md Andrea Franz 2024-09-10 10:22:15 +02:00
  • 8d320560da update docs Andrea Franz 2024-09-10 10:19:52 +02:00
  • 1c1764ec7a Update README.md Andrea Franz 2024-09-10 09:52:12 +02:00
  • 7114388ae2 update docs Andrea Franz 2024-09-10 09:50:52 +02:00
  • bc58f131ae update readme Andrea Franz 2024-09-10 02:13:52 +02:00
  • e25743e2a4 update README Andrea Franz 2024-09-10 02:08:47 +02:00
  • 5f7df8ca01 add example in README Andrea Franz 2024-09-10 02:07:40 +02:00
  • 415c697604 move docs to README Andrea Franz 2024-09-10 01:47:59 +02:00
  • ae5e7e258a add docs to StakingManager Andrea Franz 2024-09-10 01:37:48 +02:00
  • ae9a0231ee add remappings Andrea Franz 2024-09-10 01:37:37 +02:00
  • 7e15f37eba implement base indexes logic Andrea Franz 2024-09-10 01:08:53 +02:00
  • 6b86d96142 update license and solc version Andrea Franz 2024-09-10 00:05:27 +02:00
  • 96bf45b9c9 forge install: openzeppelin-contracts Andrea Franz 2024-09-10 00:03:33 +02:00
  • da3a05badf add StakeManager contract Andrea Franz 2024-09-10 00:02:52 +02:00
  • ec99480f48 forge install: forge-std Andrea Franz 2024-09-09 22:23:02 +02:00
  • 9999866d0c chore: forge init Andrea Franz 2024-09-09 22:23:01 +02:00