Commit Graph

  • 3455068e3c refactor(IStakeManager): introduce events r4bbit 2025-02-20 12:04:41 +01:00
  • 33610a35c7 refactor(IStakeManager): introduce events refactor/events r4bbit 2025-02-20 12:04:41 +01:00
  • 4086dda6e2 refactor(IStakeManager): move error codes to interface and remove unused ones r4bbit 2025-02-20 11:49:58 +01:00
  • 28437d4fe8 refactor(IStakeManager): move error codes to interface and remove unused ones refactor/error-codes r4bbit 2025-02-20 11:49:58 +01:00
  • 7acc35ff71 refactor(RewardsStreamerMP): move totalMpStaked to avoid collision r4bbit 2025-02-20 09:26:54 +01:00
  • 76a5f4a232 refactor(RewardsStreamerMP): move totalMpStaked to avoid collision refactor/storage-collision r4bbit 2025-02-20 09:26:54 +01:00
  • e3d50bf695 specs: fix expected struct size r4bbit 2025-02-19 17:37:22 +01:00
  • 6f199313ec feat(RewardsStreamerMP): allow vaults to migrate to other vaults r4bbit 2025-02-19 15:45:56 +01:00
  • c2a6ae2cfa specs: fix expected struct size feat/vault-migration r4bbit 2025-02-19 17:37:22 +01:00
  • 7eb75183a2 feat(RewardsStreamerMP): allow vaults to migrate to other vaults r4bbit 2025-02-19 15:45:56 +01:00
  • 59226ef107 test(RewardsStreamerMP): ensure lock() reverts when vault is empty r4bbit 2025-02-19 16:10:34 +01:00
  • 486e9c5c15 test(RewardsStreamerMP): ensure lock() reverts when vault is empty test/lock-empty-vault r4bbit 2025-02-19 16:10:34 +01:00
  • 6b31d3944f feat(RewardsStreamerMP): vaults shares are stakedBalance + mpStaked Andrea Franz 2025-02-18 16:12:48 +01:00
  • a2e18091b2 refactor(RewardsStreamerMP): reuse modifier in enableEmergencyMode() r4bbit 2025-02-19 09:57:37 +01:00
  • 9596f59c37 refactor(RewardsStreamerMP): reuse modifier in enableEmergencyMode() refactor/enable-emergency-mode r4bbit 2025-02-19 09:57:37 +01:00
  • fb79e249fb fix(RewardsStreamerMP): ensure registerVault reverts in emergency mode r4bbit 2025-02-19 09:33:20 +01:00
  • 595f9d8735 fix(RewardsStreamerMP): ensure registerVault reverts in emergency mode fix/registervault r4bbit 2025-02-19 09:33:20 +01:00
  • 51dcb884b3 chore(RewardsStreamerMP): remove MPs from shares/weights calculations Andrea Franz 2025-02-14 10:34:49 +01:00
  • 31127b02bc docs: update overview asset docs/update-asset r4bbit 2025-02-17 10:32:19 +01:00
  • 3fe892f1d0 chore(RewardsStreamerMP): remove MPs from shares/weights calculations remove-tmp-from-shares-weights Andrea Franz 2025-02-14 10:34:49 +01:00
  • 849bb3fb17 fix unstake to use principal and remove actual burnt shares from totalShares test-rewards-with-mps Andrea Franz 2025-02-11 16:17:29 +01:00
  • 5eb55ee37c fix comment Andrea Franz 2025-02-11 11:29:00 +01:00
  • b7c4636a87 fix unstake function Andrea Franz 2025-02-11 11:15:58 +01:00
  • 2d1b8761eb refactor: use prb-math for rewardIndex prb-math Ricardo Guilherme Schmidt 2025-02-10 11:43:05 -03:00
  • 1d8cf3eaf9 rename reposit to stake Andrea Franz 2025-02-10 14:29:43 +01:00
  • 09edf7046a chore(tests): add fuzz test for rewards Ricardo Guilherme Schmidt 2025-02-10 08:19:59 -03:00
  • 3f9469fc6f comment out WIP calls Andrea Franz 2025-02-07 17:59:45 +01:00
  • 31f6d6005c add unstake Andrea Franz 2025-02-07 17:54:03 +01:00
  • 161b7622c4 add TimeWeightedStakingSimpleClaims mart1n 2025-02-07 14:50:29 +01:00
  • b115b3669a add TimeWeightedStakingWithRewards Andrea Franz 2025-02-07 01:55:08 +01:00
  • aa67f1f628 chore: make linter happy r4bbit 2025-02-03 14:15:37 +01:00
  • 70a7f30d2a feat: introduce proxy clones r4bbit 2025-02-03 14:02:51 +01:00
  • 15a197ec72 chore: make linter happy feat/clones r4bbit 2025-02-03 14:15:37 +01:00
  • f42b17e23a use stake balances for reward index without using MPs Andrea Franz 2025-02-06 10:52:41 +01:00
  • 18fb16bcc6 feat: introduce proxy clones r4bbit 2025-02-03 14:02:51 +01:00
  • 177aba24d6 refactor: introduce TransparentProxy in favor of StakeManagerProxy r4bbit 2025-02-03 12:50:01 +01:00
  • f6630611cd WIP Andrea Franz 2025-02-05 15:47:53 +01:00
  • e3aa6c3eea wip Andrea Franz 2025-02-05 14:47:42 +01:00
  • f52847ad3d add currentRewardIndex to return the live index used in updateRewardIndex Andrea Franz 2025-02-04 12:17:14 +01:00
  • 971fe57d32 updateGlobalMP is needed only when staking, no longer needed to calculate reward index and balances, since we use the live one Andrea Franz 2025-02-04 12:05:09 +01:00
  • abdb2eb493 after staking the second time we store the accrued MP before increasing the staked balance Andrea Franz 2025-02-04 11:59:30 +01:00
  • 9985ad9cce test sum of all balances Andrea Franz 2025-02-04 11:22:56 +01:00
  • 8c4ec2df1f use and test live total MPs Andrea Franz 2025-02-04 10:51:42 +01:00
  • 4556b3d67a add tests on MP + use live MPs Andrea Franz 2025-02-04 10:30:16 +01:00
  • 65e135c046 TEST: check rewards balances after 10 years and without new rewards Andrea Franz 2025-02-04 02:38:19 +01:00
  • 62ddcdca44 TEST WIP: test rewards calculations with MPs Andrea Franz 2025-02-04 02:16:37 +01:00
  • a39af2ac6f chore(foundry.toml): fix max_test_rejects Ricardo Guilherme Schmidt 2025-02-03 11:13:42 -03:00
  • 3a41dd19c6 chore(tests): update gas report and snapshot Ricardo Guilherme Schmidt 2025-02-03 11:09:16 -03:00
  • b5d89299d5 chore(tests): fix typo Ricardo Guilherme Schmidt 2025-02-03 11:08:46 -03:00
  • b2fbf8fef3 chore(tests): fix typo Ricardo Guilherme Schmidt 2025-02-03 11:00:19 -03:00
  • 7b0b679541 chore(tests): adorno, rename and small fix Ricardo Guilherme Schmidt 2025-02-03 10:44:17 -03:00
  • 80b85083db Update docs/xp-token.md Andrea Franz 2025-02-03 14:02:56 +01:00
  • 3e699351e2 docs(XPToken): add documentation about the XP Token Andrea Franz 2025-02-03 13:56:48 +01:00
  • a47d46d0cd refactor: introduce TransparentProxy in favor of StakeManagerProxy refactor/transparent-proxy r4bbit 2025-02-03 12:50:01 +01:00
  • 6e46e3ca99 chore(tests): Add fuzz tests Ricardo Guilherme Schmidt 2025-02-03 08:00:58 -03:00
  • d99eb140f7 chore(MultiplierPointsMath): fix MAX_BALANCE Ricardo Guilherme Schmidt 2025-02-03 08:00:42 -03:00
  • a22da253c3 refactor(RewardStreamerMP): extract MP and Stake mathematical formulas to abstract contracts Ricardo Guilherme Schmidt 2025-01-30 12:28:31 -03:00
  • 0544c0e3eb refactor(RewardStreamerMP): extract MP and Stake mathematical formulas to abstract contracts refactor/abstract-math Ricardo Guilherme Schmidt 2025-01-30 12:28:31 -03:00
  • 9807f498e0 docs: add documentation with user stories r4bbit 2025-01-27 16:13:53 +01:00
  • 44deb52c58 refactor: update terminology in contract r4bbit 2025-01-23 10:32:05 +01:00
  • c22ed11ecd docs: add documentation with user stories docs/user-stories r4bbit 2025-01-27 16:13:53 +01:00
  • 70bc46f803 feature(RewardsStreamerMP): add rewardAccrued to account to allow accounts to stake again multiple times staking-again Andrea Franz 2025-01-14 13:39:25 +01:00
  • 7e4bf14da8 refactor(specs): extract staking lockup rule into own spec chore/certora-specs r4bbit 2025-01-24 14:45:53 +01:00
  • de05764171 chore(specs): remove summarizations with no effect r4bbit 2025-01-24 14:44:40 +01:00
  • 99a050dcb4 refactor: update terminology in contract refactor/terminology r4bbit 2025-01-23 10:32:05 +01:00
  • 1294b76fbd docs(rewards): add documentation about how rewards work (#113) r4bbit 2025-01-22 13:17:29 +01:00
  • c332a2f9b5 Update docs/rewards.md docs/reward-index r4bbit 2025-01-22 13:09:14 +01:00
  • ab50f21dbe docs(rewards): add documentation about how rewards work r4bbit 2025-01-22 11:30:26 +01:00
  • fe637cbe98 docs(multiplier-points): revise multiplier points documentation r4bbit 2025-01-20 14:56:23 +01:00
  • cb43de39b9 chore(scripts): add deployment config for sepolia r4bbit 2025-01-20 10:30:13 +01:00
  • 1330a0f162 docs(multiplier-points): revise multiplier points documentation docs/mp r4bbit 2025-01-20 14:56:23 +01:00
  • 8f7767963d chore(scripts): add deployment config for sepolia sepolia-config r4bbit 2025-01-20 10:30:13 +01:00
  • 26f76d4376 chore(docs): mathspec v1 (#67) Ricardo Guilherme Schmidt 2025-01-13 12:17:08 -03:00
  • 52dad3d1c1 chore(docs/multiplier-points.md): Workaround GitHub Markdown bug Ricardo Guilherme Schmidt 2024-12-21 01:19:02 -03:00
  • ebfa2a75bc chore(docs/multiplier-points.md): Fix formatting for GitHub Markdown Ricardo Guilherme Schmidt 2024-12-21 01:13:23 -03:00
  • db92a2deda chore(docs/multiplier-points.md): Add guide to multiplier poitns Ricardo Guilherme Schmidt 2024-12-21 00:57:37 -03:00
  • e2e13790a9 chore(docs/multiplier-points.md): Workaround GitHub Markdown bug docs/guide/mp Ricardo Guilherme Schmidt 2024-12-21 01:19:02 -03:00
  • ac49a4af5d chore(MathSpec.md): Lint write docs/math Ricardo Guilherme Schmidt 2024-12-21 01:13:56 -03:00
  • 597165d27f chore(docs/multiplier-points.md): Fix formatting for GitHub Markdown Ricardo Guilherme Schmidt 2024-12-21 01:13:23 -03:00
  • 387ba1e07b chore(docs/multiplier-points.md): Add guide to multiplier poitns Ricardo Guilherme Schmidt 2024-12-21 00:57:37 -03:00
  • 624bf803e2 chore(MathSpec.md): Merge ScalableRewardDistribution.md with MathSpec, fix formatting for GitHub Markdown Ricardo Guilherme Schmidt 2024-12-21 00:54:15 -03:00
  • 1cc0c1680b cleanup: remove unused RewardStreamer contract r4bbit 2024-12-12 13:32:14 +01:00
  • a66edefd74 cleanup: remove unused RewardStreamer contract cleanup/remove-unused-code r4bbit 2024-12-12 13:32:14 +01:00
  • aa15954d0c fix(RewardsStreamerMP): change account mp update time only if necessary r4bbit 2024-12-20 11:56:41 +01:00
  • e8162d7c9e chore(XPToken): rename XP to Reward providers and use the rewardsBalanceOfUser function Andrea Franz 2024-12-17 14:57:12 +01:00
  • c5aabc601c chore(XPToken): rename XP to Reward providers and use the rewardsBalanceOfUser function reward-providers Andrea Franz 2024-12-17 14:57:12 +01:00
  • a413f4cbbb feat(RewardsStreamerMP): rewardsBalanceOf uses account's accrued + pending MPs Andrea Franz 2024-12-05 18:29:43 +01:00
  • f601050dbe refactor(RewardsStreamerMP): rename functions to be appropriate Andrea Franz 2024-12-04 09:45:57 +01:00
  • 18737160f9 feat(RewardsStreamerMP): rewardsBalanceOf uses account's accrued + pending MPs live-mp-and-rewards Andrea Franz 2024-12-05 18:29:43 +01:00
  • 89a1913aab refactor(RewardsStreamerMP): rename functions to be appropriate Andrea Franz 2024-12-04 09:45:57 +01:00
  • b5ce251b8e feat(scripts): add upgrade script r4bbit 2024-12-09 15:59:07 +01:00
  • b60289d757 feat(scripts): add upgrade script upgrade-script r4bbit 2024-12-09 15:59:07 +01:00
  • eff15a8ade fix(RewardStreamerMP.t): minor fix on use of variables Ricardo Guilherme Schmidt 2024-12-09 11:34:19 -03:00
  • 6afc760974 feat(RewardsStreamerMP.t.sol): Make tests use calc functions and test those functions Ricardo Guilherme Schmidt 2024-12-09 11:21:34 -03:00
  • 33c0431ec2 docs(ScalableRewardDistribution): WIP Specification of the Scalable Reward Distribution Ricardo Guilherme Schmidt 2024-12-09 12:18:57 -03:00
  • f3b80cf1d4 fix(RewardStreamerMP.t): minor fix on use of variables fix/tests Ricardo Guilherme Schmidt 2024-12-09 11:34:19 -03:00
  • 075b6e9e1c feat(RewardsStreamerMP.t.sol): Make tests use calc functions and test those functions Ricardo Guilherme Schmidt 2024-12-09 11:21:34 -03:00
  • a565dbbac4 feat: introduce deployment script for RewardsStreamerMP r4bbit 2024-12-04 09:06:45 +01:00
  • 511d9a3ff7 feat: introduce deployment script for RewardsStreamerMP feat/deploy-script r4bbit 2024-12-04 09:06:45 +01:00
  • 106ec98839 fix(EmergencyMode.spec): add YEAR() to isViewFunction Ricardo Guilherme Schmidt 2024-12-05 15:10:37 -03:00