Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
68ebb9f
Boilerplate for new project
grod220 Jun 1, 2022
cafc564
Updating deps to cosmwasm 1.0
grod220 Jun 1, 2022
e26c793
Adding scripts boilerplate
grod220 Jun 1, 2022
6325763
Adding scripts boilerplate
grod220 Jun 1, 2022
c64670b
Adding osmosis contract deploy test [in progress]
grod220 Jun 2, 2022
8ff5721
Pushing to compile on linux vm
grod220 Jun 6, 2022
32ae0c5
Compiling contracts from linux
grod220 Jun 6, 2022
d71996a
Adding instantiation tests
grod220 Jun 6, 2022
9613193
Adding execute function
grod220 Jun 6, 2022
978a933
Adding execute function
grod220 Jun 6, 2022
83f54b8
Merge branch 'master' of https://github.com/mars-protocol/fields-cred…
grod220 Jun 6, 2022
a33fc46
working execute example test
grod220 Jun 6, 2022
cf76b42
Adding allow-list for vaults and assets
grod220 Jun 22, 2022
14332e3
Converting unit tests to cw-multi-tests
grod220 Jun 24, 2022
d9eabb5
Updating based on cw-asset 2.1 bump
grod220 Jun 28, 2022
27b7ea6
Remove build artifacts
larry0x Jun 29, 2022
20db345
Rename `fields` package to `rover`
larry0x Jun 29, 2022
1577233
Some formatting of `Cargo.toml`
larry0x Jun 29, 2022
4ad7bf0
Reorganize rover package; use unchecked types in msgs/responses
larry0x Jun 29, 2022
6698167
Adjust package and dependency versions
larry0x Jun 29, 2022
e0a49bd
Some refactoring (see PR for details)
larry0x Jun 29, 2022
00158c6
Refector query function (see PR for details)
larry0x Jun 29, 2022
b50199c
Add cw2 contract version
larry0x Jun 29, 2022
47f6974
Remove rustfmt
larry0x Jun 29, 2022
85b43ce
resolve conflicts
larry0x Jun 29, 2022
2948fa6
Merge pull request #3 from mars-protocol/v1-larry
grod220 Jun 29, 2022
5d71abe
Adding tests
grod220 Jun 29, 2022
148ac44
Fixing e2e tests
Jun 29, 2022
9bd670d
Merge pull request #1 from mars-protocol/v1
grod220 Jun 30, 2022
c81e889
User can create credit account
grod220 Jun 24, 2022
c3bd05f
Review updates: Config setting actions for contracts
grod220 Jun 30, 2022
4e4c727
simplify mint execute msg
larry0x Jul 3, 2022
5f994c9
error casting
larry0x Jul 3, 2022
9a6174d
change many things
larry0x Jul 3, 2022
dec0d31
update some tests
larry0x Jul 3, 2022
71d4692
fix a clippy error
larry0x Jul 3, 2022
68466c4
use empty extension
larry0x Jul 3, 2022
20ce283
Merge pull request #4 from mars-protocol/nft-larry
grod220 Jul 4, 2022
7231a9d
Updates from review
grod220 Jul 4, 2022
383e57b
Moving messages to new folder
grod220 Jul 11, 2022
29abb19
User can deposit native & cw20 assets
grod220 Jun 24, 2022
a4e0bc1
Merge pull request #2 from mars-protocol/nft
grod220 Jul 12, 2022
d78bf47
review updates
grod220 Jul 13, 2022
999ca9e
Review updates pt. 2
grod220 Jul 14, 2022
0ae5f46
Merge pull request #5 from mars-protocol/deposit
grod220 Jul 14, 2022
ea59294
Borrowing from red bank
grod220 Jul 12, 2022
73a97a4
Review updates
grod220 Jul 25, 2022
a78a9e8
Review updates + removal of cw20
grod220 Aug 3, 2022
faad956
Updating to Coins BTreeMap implementation
grod220 Aug 4, 2022
c26730d
Merge pull request #6 from mars-protocol/borrow
grod220 Aug 4, 2022
8824233
Adding oracle & health check support
grod220 Aug 4, 2022
2a69ec2
Adding liquidation threshold support
grod220 Aug 5, 2022
83ff4fb
More tests + debt value adjustment
grod220 Aug 6, 2022
3e83ad2
Review updates
grod220 Aug 11, 2022
b686afd
Updates from clippy (#13)
grod220 Aug 16, 2022
84441f9
Converting mock env to builder pattern (#12)
grod220 Aug 17, 2022
7f1873b
Adding support for repaying debts (#10)
grod220 Aug 17, 2022
3f7b62f
Adding support for withdrawing from credit account (#9)
grod220 Aug 24, 2022
dda6f77
Use mars-health for health factor calculations (#16)
grod220 Aug 31, 2022
9b952ce
Adding support for vault deposits (#15)
grod220 Sep 5, 2022
488ff82
Coin Liquidation action (#14)
grod220 Sep 15, 2022
ee57e27
Adding swap functionality to Rover (#18)
grod220 Sep 15, 2022
2d073a7
Add support for withdrawing+force out of vaults (#17)
grod220 Sep 15, 2022
85efa4c
Testnet deploy scripts + schema/types generation (#19)
grod220 Sep 16, 2022
a907dbe
House cleaning smorgasbord (#20)
grod220 Sep 19, 2022
112dea5
Bug fix: internal counter for nft ids (#22)
grod220 Sep 21, 2022
08c6716
Oracle vault adapter contract (#23)
grod220 Sep 28, 2022
ead9325
Updating redbank/oracle testnet addrs (#24)
grod220 Sep 28, 2022
fd41fe0
Fix redbank schema. (#25)
piobab Oct 10, 2022
cfe95da
Locked vaults: Requesting unlock + withdrawing (#21)
grod220 Oct 12, 2022
7df3f72
Adding support for mock vaults in testnet (#26)
grod220 Oct 13, 2022
f95ae22
Adding support for vault liquidations (#27)
grod220 Oct 18, 2022
814c34d
Adding deposit cap limits for risk mitigation (#29)
grod220 Oct 21, 2022
d2bd15f
New data structure for vault positions (#28)
grod220 Oct 21, 2022
b777390
Vault liq threshold support (#30)
grod220 Oct 27, 2022
4ea5ce0
New vault api alignment (#32)
grod220 Oct 28, 2022
b9c6c59
[TEMP] Adding outposts repo as internal dep (#34)
grod220 Nov 1, 2022
43993ff
integrate cw-set for allowed coins (#33)
grod220 Nov 1, 2022
b479a28
Unlocking vault positions to hold underlying token (#35)
grod220 Nov 2, 2022
0e0358e
Use cargo workspace feature. (#37)
piobab Nov 4, 2022
95c069f
Integrating zapper contract (#36)
grod220 Nov 4, 2022
9023d9f
Mp 1447 osmosis swap new ver (#31)
piobab Nov 4, 2022
92b4311
Compliant with cw2 migration specification. (#38)
piobab Nov 4, 2022
8a46360
Vault build scripts update (#39)
grod220 Nov 5, 2022
eab7637
Fields of Mars limits (#40)
grod220 Nov 7, 2022
b817eeb
Fixing build scripts (#41)
grod220 Nov 9, 2022
e093b27
Pre-audit tweaks (#42)
grod220 Nov 11, 2022
1c10aa5
Adjusting liq bonus setting (#44)
grod220 Nov 16, 2022
3d6573d
Mp 1702 fix twap osmosis (#43)
piobab Nov 18, 2022
4618bc5
Burn guard (#47)
grod220 Dec 1, 2022
7d88f21
Reentrancy mitigation (#50)
grod220 Dec 1, 2022
4c0eec8
Disallow redbank config update [oak audit] (#56)
grod220 Dec 1, 2022
fcaf0d3
Updating de-listing logic (#51)
grod220 Dec 1, 2022
6bb90bb
Remove unused priceable underlying query [oak audit] (#58)
grod220 Dec 1, 2022
0c3db0c
Remove unused callback [oak audit] (#59)
grod220 Dec 1, 2022
4589cf3
Max close factor validated [oak audit] (#57)
grod220 Dec 1, 2022
83c5e87
Validate for duplicate keys [oak audit] (#55)
grod220 Dec 1, 2022
6f75e50
Enforce max unlocking positions [oak audit] (#52)
grod220 Dec 1, 2022
79cd70b
Set contract override fix [oak audit] (#54)
grod220 Dec 1, 2022
e373122
Admin pkg access controls [oak audit] (#60)
grod220 Dec 1, 2022
bdc541c
Use v2 queries. (#49)
piobab Dec 1, 2022
1f8bbdc
Admin state machine pkg [oak audit] (#61)
grod220 Dec 6, 2022
a07a55a
Update swapper to new admin package (#64)
grod220 Dec 7, 2022
55f21b3
Mock zapper update (#65)
grod220 Dec 7, 2022
275efbe
MP-1712. Improve ci check. (#48)
piobab Dec 7, 2022
d6091c5
Support optional repay amount (#66)
grod220 Dec 8, 2022
edfc42e
Support optional amounts for swapping (#67)
grod220 Dec 8, 2022
f7eb3a2
Withdraw liquidity message takes optional amount (#68)
grod220 Dec 12, 2022
af63f65
Deps and cicd (#69)
piobab Dec 12, 2022
7506d1c
Borrow & round up division (#70)
grod220 Dec 13, 2022
2620d94
Changing liquidation bonus rounding (#71)
grod220 Dec 13, 2022
20b51cb
Add fully-qualified versions of deps (#72)
grod220 Dec 13, 2022
ecdcdeb
Renaming allowed_vaults to vault_configs (#73)
grod220 Dec 13, 2022
95b0f05
Updating build scripts (#76)
grod220 Dec 15, 2022
77e3e42
Update vault token pricing method (#75)
grod220 Dec 15, 2022
0226651
Updating outposts package (#77)
grod220 Dec 15, 2022
a9d1d2e
shorter lockup + redeploy (#78)
grod220 Dec 15, 2022
6b9d0ad
New mock lp token (#79)
grod220 Dec 16, 2022
0458e95
Init contracts with owner / admin. (#80)
piobab Dec 20, 2022
a11794d
Mp 1814 migrate zapper (#74)
piobab Dec 28, 2022
498edaf
rename .coins to .deposits (#83)
grod220 Dec 29, 2022
781c5cc
Vault utilization query (#82)
grod220 Dec 29, 2022
98f27a3
Adjust deposit cap params (#84)
grod220 Dec 29, 2022
6e318e9
Updating build script price sources (#85)
grod220 Jan 2, 2023
75c80b7
Use crates.io owner pkg (#87)
grod220 Jan 4, 2023
50a86bd
Health check + Vault pricing updates (#90)
grod220 Jan 10, 2023
d58f03c
Updating formatting rules (#91)
grod220 Jan 10, 2023
afbd223
Add relevant event attributes (#92)
Jan 11, 2023
88b937e
Create LICENSE (#94)
dav1de24 Jan 12, 2023
e8b25f0
Update README.md (#95)
dav1de24 Jan 12, 2023
cdd81e5
Outposts update + redeployment (#96)
grod220 Jan 17, 2023
0a490d4
Redeploy w/ latest oracle/red bank (#97)
grod220 Jan 18, 2023
11925c1
Simplify vault pricing method (#98)
grod220 Jan 18, 2023
2008338
Validate no duplicate vault tokens in config [oak audit] (#101)
grod220 Jan 19, 2023
2ac0277
Lowering max LTV for delisted vaults [Oak audit] (#99)
grod220 Jan 19, 2023
0f78c10
Allow Rover to update nft config [Oak audit] (#100)
grod220 Jan 19, 2023
5388276
Remove test_ prefix (#102)
grod220 Jan 19, 2023
e4602e0
Drop maxLTV is vault base token disallowed [Oak audit] (#105)
grod220 Jan 23, 2023
3978df6
Use the correct SPDX license identifier (#104)
larry0x Jan 23, 2023
6ef2d8a
Allow actions that improve maxLTV (when unhealthy) (#103)
grod220 Jan 23, 2023
ad2540b
Updated LTVs on testnet (#106)
grod220 Jan 24, 2023
08acde2
Add lend msg to actions (#45)
grod220 Jan 25, 2023
772beb8
Mp 2107 cleanup (#109)
piobab Jan 30, 2023
a86cd38
Replace enumerations with cw-paginate (#110)
grod220 Feb 1, 2023
67bc7bd
Include denom in coin_lent attribute (#114)
Feb 14, 2023
8636f1c
[Pt. 1] New health contract + packages (#111)
grod220 Feb 16, 2023
c03de18
Remove readme CEX example (#117)
grod220 Feb 21, 2023
c5eb453
[Part 2] Integration of new health contract for all (#112)
grod220 Feb 22, 2023
9eb7150
Add in multisig responsibilities (#116)
brimigs Feb 23, 2023
e3d5c80
deploy update to match v2-fields-of-mars (#118)
brimigs Feb 23, 2023
e47da96
[Part 3] Frontend .wasm health calculation examples (#113)
grod220 Feb 24, 2023
5a79c80
Extract utilization to its own query (#119)
grod220 Mar 2, 2023
1dae705
Log unlocking position amount (#121)
Mar 3, 2023
e8d6311
Update account nft burn logic (#120)
grod220 Mar 3, 2023
d4e2f74
Mp 1742 add reclaim msg to actions (#93)
brimigs Mar 8, 2023
f94bdaf
Reclaim msg updates (#124)
brimigs Mar 13, 2023
39ac35b
Update all deps to latest version (#126)
grod220 Mar 14, 2023
e582aa4
Adding emergency owner role (#128)
grod220 Mar 17, 2023
e411632
Liquidate lent asset (#125)
piobab Mar 18, 2023
33d49d0
Allow anyone to repay debt (#127)
brimigs Mar 20, 2023
439080f
Add account_id field to reclaim event (#130)
Mar 30, 2023
42678c6
add red bank in config (#131)
brimigs Mar 31, 2023
4f8f762
Update testtube deps (#132)
grod220 Mar 31, 2023
c9713f7
Fixing wasm-pack compilation bug (#134)
grod220 Apr 27, 2023
d4ccb55
Support repaying debt of blacklisted asset (#135)
grod220 May 1, 2023
0f15d89
V3 Zapper Contract (open positions) (#133)
grod220 May 3, 2023
3502d63
Update cw-721 to 0.17.0 (#137)
grod220 May 9, 2023
0989296
Update owner query response (#136)
grod220 May 10, 2023
ee0320e
Mp 2484 integrate asset params contract with rover (#138)
brimigs Jun 5, 2023
b9f1082
Add min_receive to zapper withdraw (#140)
grod220 Jun 8, 2023
c1f6834
HLS accounts (#142)
grod220 Jun 16, 2023
4e7bdec
Add swapper osmosis types (#143)
grod220 Jun 16, 2023
ea7adf7
Dispatch actions takes ownership (#139)
grod220 Jun 16, 2023
c8a4ca3
Mp 2829 update build scripts and deploy to testnet (#145)
brimigs Jun 19, 2023
482b234
Test-tube to 0.16.0-beta.0 (#144)
grod220 Jun 19, 2023
c2662c0
Round up health debt value (#147)
grod220 Jun 21, 2023
4a8a3b8
Dynamic LB and CF (#146)
piobab Jun 23, 2023
d8d2c6e
Max withdraw FE helper (#148)
grod220 Jun 27, 2023
4d7643f
Add max borrow js helper (#149)
grod220 Jun 28, 2023
8e896cd
More precise handling of balance updates (#150)
grod220 Jul 3, 2023
2f97f43
Add reentrancy guard (#151)
grod220 Jul 5, 2023
c37ffc9
Guard on lending small amounts (#152)
grod220 Jul 6, 2023
b6ce381
Revert "Guard on lending small amounts" (#155)
grod220 Jul 7, 2023
8d79e06
Add health state query (#154)
grod220 Jul 10, 2023
8d1af2c
Mp 3003 have lend take action coin (#153)
brimigs Jul 10, 2023
ce06c1a
Self liquidations not permitted (#157)
grod220 Jul 12, 2023
0af9366
Liquidation uses new Oracle pricing kind (#156)
grod220 Jul 12, 2023
3543f06
Lent shares handled in Red Bank (#159)
grod220 Jul 18, 2023
a4becb6
Remove unzap whitelist check (#160)
grod220 Jul 19, 2023
8fda30b
Withdraw incentives rewards (#161)
grod220 Jul 20, 2023
0b29ebc
Add v1 -> v2 migration endpoint (#162)
grod220 Jul 21, 2023
c37d934
Remove v3 zapper & update swapper (#163)
grod220 Jul 25, 2023
edbd76b
Mp 3156 health computer max borrow to wallet (#164)
bobthebuidlr Jul 25, 2023
cddb1c2
Typesafe wasm exports (#165)
grod220 Jul 26, 2023
886384c
Mp 3123 simplify liquidation (#166)
piobab Jul 26, 2023
78aaeb6
Mp 3158 health computer max borrow to vault (#167)
bobthebuidlr Aug 1, 2023
1a9a249
Mp 3158 swap amounts (#169)
bobthebuidlr Aug 2, 2023
39401dd
Fix unsupported Wasm import error (#171)
larry0x Aug 5, 2023
60a15a5
Shared deposit cap (#170)
larry0x Aug 5, 2023
595266f
Build consistency with red-bank. (#173)
piobab Aug 5, 2023
acd8e76
Add accounts query. (#172)
piobab Aug 6, 2023
6013cbc
New rover deployment (#174)
brimigs Aug 6, 2023
d77b268
Add tests (#175)
brimigs Aug 9, 2023
fe09cc9
[HC] update wasm files (#176)
bobthebuidlr Aug 14, 2023
fcdff49
Withdraw takes action coin (#177)
brimigs Aug 21, 2023
a1d0df8
MP-3292. Oak no. 1 (#180)
piobab Aug 25, 2023
0910d94
MP-3293. Oak no. 2. (#181)
piobab Aug 28, 2023
161c53c
MP-3300. Oak no. 9. (#182)
piobab Aug 28, 2023
fda7ee4
MP-3294. Oak no. 3. (#183)
piobab Aug 28, 2023
d2bf26e
[HC] add lends to swap/withdraw actions (#184)
bobthebuidlr Aug 28, 2023
7173009
[HC] enable margin swap when from_coin.amount is 0 (#186)
bobthebuidlr Aug 30, 2023
5325816
MP-3306. Oak no. 15. (#188)
piobab Aug 31, 2023
96d14d9
MP-3308, Oak no. 17. MP-3309, Oak no. 18. (#189)
piobab Aug 31, 2023
05721bb
MP-3296. Oak no. 5. (#191)
piobab Aug 31, 2023
e79236e
Fix Protocol Liquidation Fee calculation (#185)
piobab Sep 1, 2023
572ceff
MP-3298. Oak no. 7. (#187)
piobab Sep 1, 2023
1fb8d3e
MP-3301. Oak no. 10. (#193)
piobab Sep 4, 2023
3b7dbec
MP-3295. Oak no. 4. Don't check HF for deposit and repay. (#192)
piobab Sep 5, 2023
b03eb5b
MP-3352. Query acc kind before burn (#195)
piobab Sep 11, 2023
bb5481d
Withdraw coins after claiming rewards for HLS account. (#196)
piobab Sep 13, 2023
40cf48e
MP-3350. Slippage (#197)
piobab Sep 13, 2023
a31c960
Devnet deployment (#194)
piobab Sep 19, 2023
a5e071c
Migration V1 -> V2 (#198)
piobab Sep 26, 2023
7c9d2f2
Clear empty accounts (#199)
piobab Sep 26, 2023
1176c73
Withdraw claimed rewards to user's address. (#200)
piobab Oct 5, 2023
bebf5cc
Merge remote-tracking branch 'rover/master' into merge
larry0x Oct 7, 2023
605a3c1
Make 'yarn build' happy.
piobab Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 8 additions & 1 deletion .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Install stable Rust
run: cd ../ && cargo make install-stable && cd scripts

Expand All @@ -48,5 +48,12 @@ jobs:
yarn generate-types
git diff --exit-code

- name: Compile latest health computer helpers
run: yarn compile-health-all

- name: Check build
run: yarn build

- name: Check react health example builds
working-directory: ./scripts/health/example-react
run: yarn install && yarn build
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ artifacts/

yarn-error.log

# private scripts that I don't want to commit are prefixed by an underscore
**/_*.js
**/_*.ts

# proptest generated files
**/*.proptest-regressions
Loading