Skip to content

Instantly share code, notes, and snippets.

View blue-santa's full-sized avatar

Blue Santa blue-santa

View GitHub Profile

DEX API

Note About Rational Number Type

MM2 now offers the num-rational crate feature. This is used to represent order volumes and prices.

Komodo highly recommends that the developer use the rational number type when calculating an order's price and volume. This avoids rounding and precision errors when calculating numbers such as 1/3, as these cannot be represented as a finite decimal.

The MM2 API typically will return both the rational number type as well as the decimal representation, but the decimal representation should be considered only a convenience feature for readability.

@blue-santa
blue-santa / err-output-ycm.txt
Created March 20, 2023 08:18
My recent error output for youcompleteme
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
In file included from /usr/local/include/pqxx/array:4,
from /usr/include/c++/11/functional:63,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/local/include/pqxx/array.hxx:18,
from /usr/local/include/pqxx/array:5,
from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/bits/unique_ptr.h:37,
from /usr/include/c++/11/bits/locale_conv.h:41,
from /usr/include/c++/11/locale:43,
bluesanta@zuko:~/.vim/pack/YouCompleteMe/opt/YouCompleteme$ ./install.py --all --verbose
Searching Python 3.10 libraries...
Found Python library: /usr/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.so
Found Python headers folder: /usr/include/python3.10
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
@blue-santa
blue-santa / Sidd-New-Work-Schedule.md
Last active June 3, 2019 18:51
New Workschedule Proposal

New Work Schedule Starting September 1, 2019

Starting on September 1, 2019, I would like to transition to a different work schedule at Komodo.

I believe this will increase efficiency and available resources at Komodo, while maintaining and growing our available technical documentation content.

For my part, the schedule change will allow me to greater enhance my skill set in the computer sciences, and therefore this can increase my usefullness to Komodo.

There are no new costs associated with this proposal to Komodo, and it should even release several resources for other uses.

@blue-santa
blue-santa / 2018-11-26-deploy.sh-Terminal-Error-Output
Created November 26, 2018 20:11
The output leading up to the error
siddhartha@aang:~/Documents/01-Studio/01-Commercial-Public/01-Komodo/2018-11-15-Komodo-Docs-Vuepress$ ./deploy.sh
yarn run v1.12.1
$ vuepress build docs
WAIT Extracting site metadata...
[11:07:23 AM] Compiling Client
[11:07:23 AM] Compiling Server
(node:6056) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
[11:07:29 AM] Compiled Server in 6s
[11:07:31 AM] Compiled Client in 8s

In the marketing meeting today, we were trying to create a narrative to visualize what our customers will be doing with CC.

There were a few areas where we ran to the edge of my understanding.

Can one of the devs please help correct this visualization wherever it is inaccurate?

Let's say that I'm a dApp dev and I want to make a card game.

I have my main asset chain. It serves as the underlying currency for performing transactions on the chain. It is not designed to be a high-market cap coin, by itself.