Skip to content

Commit

Permalink
feat(rebalancer_info): add more info into info rebalancer tables (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
devton authored Nov 19, 2022
1 parent 5efb0d0 commit b514aaa
Show file tree
Hide file tree
Showing 5 changed files with 289 additions and 77 deletions.
143 changes: 139 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mfm"
version = "0.1.20"
version = "0.1.21"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down Expand Up @@ -35,6 +35,7 @@ num-bigint = { version = "0.4.3", features = ["serde"] }
num-traits = "0.2.15"
zeroize = "1.5.7"
orion = "0.17.2"
chrono = "0.4.23"



Expand Down
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ MFM (Multiverse Finance Machine) is a CLI to managing portfolio of cryptoassets
- [ ] Support LP's as a asset type and handle with them in the portfolio
- [ ] Support Yield Farms and Harvest rewards
- [ ] Add machine command within a module using state-machine logic to run sequencially and conditionally multiples commands as workflows
- [ ] Automatic hedge with pancakeswap / position exchange futures
- [ ] Trading strategies with TA (daemon)

## Fast local install & update using releases

### *nix (?)
```sh
# may need adjust for some systems
LATEST_APP_URL="$( \
curl -s https://api.github.com/repos/willyrgf/mfm/releases/latest |
grep 'browser_download_url' |
grep "$(uname | tr '[[:upper:]]' '[[:lower:]]')" |
curl -s https://api.github.com/repos/willyrgf/mfm/releases/latest |
grep 'browser_download_url' |
grep "$(uname | tr '[[:upper:]]' '[[:lower:]]')" |
awk -F '"' '!/.sha256sum/ {print $4}' \
)"
curl -s -L $LATEST_APP_URL -O
Expand All @@ -30,7 +32,7 @@ This directory will carry all the abi files used as default in this project.
All these abi files in this directory will be add in the binary in compilation time (`build.rs`).

To access this files we've a `shared::resources` module that will always condering your currently
filesystem `res/` directory and the default `static RES` compiled in the binary (`build.rs`),
filesystem `res/` directory and the default `static RES` compiled in the binary (`build.rs`),
following this order of priority respectively.

<!-- TODO: add install doc and res folder -->
Expand Down Expand Up @@ -70,10 +72,10 @@ cargo run -- unwrap --network bsc --wallet test-wallet --amount 0.005

#### To approve all assets
```bash
cargo run -- allowance --network polygon --wallet test-wallet |
grep ^\| |
grep -v Exchange |
awk -F '|' '{print $2 $3}' |
cargo run -- allowance --network polygon --wallet test-wallet |
grep ^\| |
grep -v Exchange |
awk -F '|' '{print $2 $3}' |
xargs -n 2 bash -c 'cargo run -- approve --exchange $0 -w test-wallet --asset $1 --amount 10000000'
```

Expand All @@ -90,7 +92,7 @@ cargo run -- allowance --network polygon --wallet test-wallet |
### swap tokens for tokens supporting fees on transfer

```bash
cargo run -- swap -w test-wallet -n bsc -e pancake_swap_v2 -i wbnb -o busd -a 0.0006
cargo run -- swap -w test-wallet -n bsc -e pancake_swap_v2 -i wbnb -o busd -a 0.0006
```

---
Expand Down
Loading

0 comments on commit b514aaa

Please sign in to comment.