Commit Graph

152 Commits

Author SHA1 Message Date
Hardhat Chad
b0145c202c Remove boost lock constraint (#116)
* remove boost lock constraint

* make boost expiration a hard error

* undo
2025-02-21 13:28:40 -06:00
Hardhat Chad
c89f73e8d3 update description 2025-02-11 12:25:11 -08:00
Hardhat Chad
112016acd2 remove idl injection 2025-02-11 12:24:12 -08:00
Hardhat Chad
cee50ae16d upgrade to steel v3 2025-02-10 13:22:10 -08:00
Hardhat Chad
ec84d18860 comment 2025-01-20 10:20:49 -08:00
Hardhat Chad
cbe63c0d7d mining reward checksum 2025-01-20 09:38:12 -08:00
Hardhat Chad
70a9d38e4d Global Boost (#112)
* update accounting logic for global boosts

* rename vars

* update event

* const

* deprecate top balance

* handle div by zero

* cast to u128

* debug logs

* fix proof parser

* debug logs

* update boost sdk

* remove debug logs

* import

* cleanup sdk

* silent error

* debug logs

* more logs

* boost math

* debug log

* log timing

* debug logs

* alt model

* alt model

* refine sdk

* fix optional account parser

* debug logs

* boost keys

* update sdk

* remove debug logs

* mainnet program id

* cleanup

* update metadata

* update deps
2025-01-19 19:07:16 -06:00
Hardhat Chad
306289cec6 comment out idl for now 2024-11-14 05:50:57 +00:00
Hardhat Chad
07730be9ab avoid diving by zero (#106) 2024-11-13 23:50:02 -06:00
Fernando Otero
07d8b4cedd Add Codama IDL to program binary (#105)
* Add Codama IDL

* Add IDL to program binary

* Update dependency

* Use published crate

---------

Co-authored-by: Hardhat Chad <155858888+HardhatChad@users.noreply.github.com>
2024-11-01 17:00:49 -05:00
Hardhat Chad
0e1460e2a4 Deprecate upgrade (#101)
* deprecate upgrade function

* bump versions

* move flag
2024-11-01 16:08:02 -05:00
Hardhat Chad
cb24b65133 Migrate to steel v2 (#102)
* migrate to steel v2

* migrate to steel v2

* assert with err

* args ordering

* new close

* logging

* bump deps

* bump ore-boost-api version

* deprecate bumps in sdk

* remove msg

* remove comment

* remove unused import

* bump version
2024-10-25 17:22:41 -05:00
Hardhat Chad
d59b3a2f4d Deprecate legacy staking (#99)
* add post balance to MineEvent log

* log input hash

* deprecate legacy staking

* update error message

* remove stake from readme

* err msg

* err msg

* update logs and comments

* consolidate logs

* last hash at

* bump version

* deprecate legacy staking

* update error message

* remove stake from readme

* err msg

* err msg

* bump version

---------

Co-authored-by: tonton-sol <19677766+tonton-sol@users.noreply.github.com>
Co-authored-by: alex <aabinaei@gmail.com>
2024-10-24 13:41:03 -05:00
Hardhat Chad
4b9362048a last hash at 2024-10-18 23:48:07 +00:00
Hardhat Chad
c913ee44ea consolidate logs 2024-10-18 23:41:54 +00:00
Hardhat Chad
34cea09457 Merge pull request #79 from tonton-sol/mine-event-log-add-balance
add post balance to MineEvent log
2024-10-18 18:38:42 -05:00
Hardhat Chad
bbc71bf86c update logs and comments 2024-10-18 18:38:10 +00:00
alex
fa5dedae3b log input hash 2024-10-16 20:33:54 -07:00
Hardhat Chad
c5eb87cac8 comments 2024-10-15 23:53:02 +00:00
Hardhat Chad
c27e1f5570 comment 2024-10-15 23:40:56 +00:00
Hardhat Chad
6e87712021 update comment 2024-10-15 21:29:17 +00:00
Hardhat Chad
5c27bd3d00 move spam check up in logic 2024-10-15 21:27:06 +00:00
Hardhat Chad
f3a04fd8cb unify imports 2024-10-15 18:00:33 +00:00
Hardhat Chad
3e9638679d move logs to end 2024-10-15 17:59:26 +00:00
Hardhat Chad
55e85898b3 simple cleanup 2024-10-15 15:41:27 +00:00
alex
86162147f3 scale boosts 2024-10-15 07:33:19 -07:00
alex
6744270071 sum boost rewards 2024-10-14 02:14:22 -07:00
alex
681df6f96d base rewards 2024-10-14 01:56:47 -07:00
Hardhat Chad
24aace2c24 add stricter address check 2024-10-11 20:58:56 +00:00
alex
648c024b51 log base reward after boost rewards 2024-10-08 00:41:18 -07:00
alex
f339895deb log bas reward after boost rewards 2024-10-08 00:06:02 -07:00
Hardhat Chad
2fde727359 removed dead code 2024-10-07 20:10:17 +00:00
Hardhat Chad
e873fbb0dd fix total rewards calculus 2024-10-07 20:10:08 +00:00
alex
6ae1ac53b3 rebased 2024-10-07 18:40:03 +00:00
Hardhat Chad
58e27c1274 skip duplicate boost 2024-10-07 18:36:56 +00:00
Hardhat Chad
85d9baf097 remove unneeded data borrow 2024-10-07 18:36:13 +00:00
Hardhat Chad
74c8a1a073 reimplement staking multiplier 2024-10-07 18:36:13 +00:00
Hardhat Chad
b4fdfe1166 boost expires at 2024-10-07 18:34:21 +00:00
Hardhat Chad
1584fc5cbf fix overflow issue 2024-10-07 18:33:47 +00:00
Hardhat Chad
1b30a0fd8d comment out unused var 2024-10-07 18:32:02 +00:00
Hardhat Chad
b5f42e251a update boosts 2024-10-07 18:26:04 +00:00
Hardhat Chad
5bfb623011 reset update 2024-10-07 18:25:34 +00:00
Hardhat Chad
0f6909454d scaffolding boosts 2024-10-07 18:25:34 +00:00
Hardhat Chad
7d05132d9d remove unneeded data borrow 2024-10-07 18:23:43 +00:00
Hardhat Chad
01e3f8f81e reimplement staking multiplier 2024-10-07 18:23:43 +00:00
Hardhat Chad
e6f01e88bc boost expires at 2024-10-07 18:23:12 +00:00
Hardhat Chad
eb8ce05049 fix overflow issue 2024-10-07 18:22:40 +00:00
Hardhat Chad
7ddcf82ae6 comment out unused var 2024-10-07 18:20:58 +00:00
Hardhat Chad
21041c7a8b todo 2024-10-07 18:15:07 +00:00
Hardhat Chad
862c639343 update boosts 2024-10-07 18:14:18 +00:00