- x * log 2 = log 9
- x = 3.17
- 2 ^ 3.17 = 9
#Rust pop-quiz:
@terra_money has a swagger endpoint where you can query bunches of things.
Write a Rust program to query your wallet's balances. Notice anything weird?
Does @TeamKujira have a swagger endpoint to make such queries?
#Rust pop-quiz answer: matrix/(spreadsheet)-transpose
You know what 'transpose' means, mathematically?
It means the rows become the columns, or, as I implement it in matrix_utils.rs: the cols become the rows.
Example: where I show ETH/BTC ratios over time.
* did anybody see the total number of $WINK tokens? 69M.So: are they $WINK-ers or $WANK-ers? Eh? EH? π
Based upon the previous lauches, a token's launch has this behavior following a launch on Pilot:
ROI: -79.75%; -508.90% APR
Every token, except $WINK, follows this trend. Will $KART?
#Rust pop-quiz 02
Now that you can read from a REST endpoint, shunt that functionality into its own module, read_rest.rs that has the following function:
read_pivots() -> ErrStr<Vec<String>>
We'll be using this as a library function in follow-on quizzes.
The library name? swerve
Fun fact!
Did you know that you – YES, YOU! – can make your git repository data a (GET) REST endpoint?IT'S TRUE! HERE'S HOW IS ONE EASY STEP!Your CSV, TSV, or, really, any data on github has a 'raw'-counterpart that can be queried, just like any GET REST endpoint.
Caveat
These raw-representations are NOT updated instantly on a git push but there is a timed-delay of 5 minutes (300 seconds), so: if you do a git push and don't see the updates in the raw data, DON'T PANIC! This is not a bug, but a feature, from github.
#Rust / #Elixir pop-quiz
The spreadsheet 'transpose'-function takes a set of rows and transposes them to a set of columns (or vice versa).
Take the SPREADSHEETZORXEN generated by ./cmc:
and output, instead, the single row of token-prices.
2024-05-28 5.16999452 1.613136506 1.204187945 8.710272459
Bonus to adding $stTIA to the lsd-configuration pop-quiz: Configure reading the configuration file from branches other than main.
What do I mean by this?
./lsd doesn't have configuration to locate the lsd-configuration-file, so testing can only occur in main (??!)
Pass the branch-name to ./lsd