Compare commits

..
Author SHA1 Message Date
Dariusz Majcherczyk 8fc719dd4d chore: formatting fix 2022-12-28 13:34:45 +01:00
Dariusz Majcherczyk f7a33c47ca chore: tests will be added after the proper implementation is prepared 2022-12-28 13:33:08 +01:00
mattrussell36 15d2aed343 chore: update tranches
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-28 06:08:30 +00:00
mattrussell36 0284eaf9a2 chore: update tranches
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-28 00:12:18 +00:00
3 changed files with 51 additions and 33 deletions
+44 -22
View File
@@ -351,7 +351,7 @@
"tranche_end": "2023-12-05T00:00:00.000Z",
"total_added": "129999.45",
"total_removed": "0",
"locked_amount": "81189.00181109020553229",
"locked_amount": "81070.337006633978039715",
"deposits": [
{
"amount": "129999.45",
@@ -417,7 +417,7 @@
"tranche_end": "2023-09-03T00:00:00.000Z",
"total_added": "52600",
"total_removed": "0",
"locked_amount": "35918.4961123794978",
"locked_amount": "35846.40962709284768",
"deposits": [
{
"amount": "2600",
@@ -590,7 +590,7 @@
"tranche_end": "2023-09-17T00:00:00.000Z",
"total_added": "5000",
"total_removed": "0",
"locked_amount": "3606.086536022324",
"locked_amount": "3599.234208523592",
"deposits": [
{
"amount": "5000",
@@ -801,7 +801,7 @@
"tranche_end": "2023-04-05T00:00:00.000Z",
"total_added": "97499.58",
"total_removed": "0",
"locked_amount": "22861.0493019706346484468",
"locked_amount": "22744.6501829256211169652",
"deposits": [
{
"amount": "97499.58",
@@ -834,7 +834,7 @@
"tranche_end": "2023-04-05T00:00:00.000Z",
"total_added": "135173.4239508",
"total_removed": "98230.390980249184455396",
"locked_amount": "31247.107600282979940660298716",
"locked_amount": "31088.01010001801516473973388",
"deposits": [
{
"amount": "135173.4239508",
@@ -880,7 +880,7 @@
"tranche_end": "2023-04-05T00:00:00.000Z",
"total_added": "32499.86",
"total_removed": "0",
"locked_amount": "9617.248652134231053772",
"locked_amount": "9568.281552857262087016",
"deposits": [
{
"amount": "32499.86",
@@ -913,7 +913,7 @@
"tranche_end": "2023-04-05T00:00:00.000Z",
"total_added": "10833.29",
"total_removed": "0",
"locked_amount": "3130.321112697780704066",
"locked_amount": "3114.382797048611231481",
"deposits": [
{
"amount": "10833.29",
@@ -946,7 +946,7 @@
"tranche_end": "2023-04-05T00:00:00.000Z",
"total_added": "22749.93",
"total_removed": "0",
"locked_amount": "11701.839463857984444507",
"locked_amount": "11642.258480202879280731",
"deposits": [
{
"amount": "6500",
@@ -1085,7 +1085,7 @@
"tranche_end": "2023-05-01T00:00:00.000Z",
"total_added": "22500",
"total_removed": "2310.007577475",
"locked_amount": "15444.7355547882135",
"locked_amount": "15382.55352209944725",
"deposits": [
{
"amount": "7500",
@@ -1195,7 +1195,7 @@
"tranche_end": "2023-06-02T00:00:00.000Z",
"total_added": "1939928.38",
"total_removed": "928642.9598472029154",
"locked_amount": "830418.589078051136755202",
"locked_amount": "827759.984161282406585208",
"deposits": [
{
"amount": "1852091.69",
@@ -1547,7 +1547,7 @@
"tranche_end": "2023-02-01T00:00:00.000Z",
"total_added": "42500",
"total_removed": "22452.0135114",
"locked_amount": "8140.6710761372795",
"locked_amount": "8025.131151871980625",
"deposits": [
{
"amount": "12500",
@@ -31990,7 +31990,7 @@
"tranche_end": "2023-06-05T00:00:00.000Z",
"total_added": "3732368.4671",
"total_removed": "428705.3729302523069",
"locked_amount": "1300565.575097378439837757406",
"locked_amount": "1296480.224968225137030163974",
"deposits": [
{
"amount": "1998.95815",
@@ -33215,8 +33215,8 @@
"tranche_start": "2022-06-05T00:00:00.000Z",
"tranche_end": "2023-12-05T00:00:00.000Z",
"total_added": "15870102.715470999700000001",
"total_removed": "511218.93522350218767952",
"locked_amount": "9911409.6106449879859047601650237654190322",
"total_removed": "511707.48747205333330452",
"locked_amount": "9896923.2213915595205083943206150053690187",
"deposits": [
{
"amount": "16249.93",
@@ -33790,6 +33790,11 @@
"user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b",
"tx": "0x1e3efba0c9a6b7f9653f0fb5f9b24ae9c13ec801d00cf7f9333689f7432914c0"
},
{
"amount": "488.552248551145625",
"user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b",
"tx": "0x2e647a56ae1d573955783dfae447261e5dbabf2f61557f2cf9a4f19cdfa9e0ed"
},
{
"amount": "930.302108",
"user": "0xF4c75FdbAe821C6B5DBB9f001bB23cBA58D1bA37",
@@ -35090,6 +35095,12 @@
"tranche_id": 2,
"tx": "0x1e3efba0c9a6b7f9653f0fb5f9b24ae9c13ec801d00cf7f9333689f7432914c0"
},
{
"amount": "488.552248551145625",
"user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b",
"tranche_id": 2,
"tx": "0x2e647a56ae1d573955783dfae447261e5dbabf2f61557f2cf9a4f19cdfa9e0ed"
},
{
"amount": "2074.139541638025125",
"user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b",
@@ -35980,8 +35991,8 @@
}
],
"total_tokens": "259998.8875",
"withdrawn_tokens": "97142.685093016968625",
"remaining_tokens": "162856.202406983031375"
"withdrawn_tokens": "97631.23734156811425",
"remaining_tokens": "162367.65015843188575"
},
{
"address": "0x89051CAb67Bc7F8CC44F7e270c6EDaf1EC57676c",
@@ -37984,8 +37995,8 @@
"tranche_start": "2021-11-05T00:00:00.000Z",
"tranche_end": "2023-05-05T00:00:00.000Z",
"total_added": "14597706.0446472999",
"total_removed": "3489401.90950082536320653",
"locked_amount": "3428704.84130926731572974432005816",
"total_removed": "3490080.38172369381877728",
"locked_amount": "3415331.099246970032229138960741198",
"deposits": [
{
"amount": "129284.449",
@@ -38239,6 +38250,11 @@
"user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b",
"tx": "0x617ff95943d9685aaf9763e3fb4ca1f81e8dd04fd013d1a64b59e52b78b25b81"
},
{
"amount": "678.47222286845557075",
"user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b",
"tx": "0x40dc4dbfbf26c199c7cf1be4b281d553d470a830423ff678795585588d1c5cd0"
},
{
"amount": "9158.56255453299474378",
"user": "0x66827bCD635f2bB1779d68c46aEB16541bCA6ba8",
@@ -40853,6 +40869,12 @@
"tranche_id": 3,
"tx": "0x617ff95943d9685aaf9763e3fb4ca1f81e8dd04fd013d1a64b59e52b78b25b81"
},
{
"amount": "678.47222286845557075",
"user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b",
"tranche_id": 3,
"tx": "0x40dc4dbfbf26c199c7cf1be4b281d553d470a830423ff678795585588d1c5cd0"
},
{
"amount": "2874.6686339993457875",
"user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b",
@@ -43033,8 +43055,8 @@
}
],
"total_tokens": "359123.469575",
"withdrawn_tokens": "274108.98298493707152025",
"remaining_tokens": "85014.48659006292847975"
"withdrawn_tokens": "274787.455207805527091",
"remaining_tokens": "84336.014367194472909"
},
{
"address": "0xBdd412797c1B78535Afc5F71503b91fAbD0160fB",
@@ -44278,7 +44300,7 @@
"tranche_end": "2023-04-05T00:00:00.000Z",
"total_added": "5778205.3912159303",
"total_removed": "2479228.813551817124120168",
"locked_amount": "1037798.493633229255945123020263576",
"locked_amount": "1032514.569522812721239779346074048",
"deposits": [
{
"amount": "552496.6455",
@@ -46074,7 +46096,7 @@
"tranche_end": "2023-06-05T00:00:00.000Z",
"total_added": "472355.6199999996",
"total_removed": "27238.3679206278963",
"locked_amount": "206082.034745654336161635141856908",
"locked_amount": "205434.70264313148577319305783866",
"deposits": [
{
"amount": "3000",
@@ -423,4 +423,9 @@ describe('amend and cancel order', { tags: '@smoke' }, () => {
testOrderCancellation(order);
});
});
it.skip('tbd for 7003-MORD', () => {
// NOT COVERED: must see the reference, offset and direction for each part pegged order - waiting for clarification
// NOT COVERED: must see the reference, offset and direction for each part liquidity order order - waiting for clarification
// NOT COVERED: must be warned (pre-submit) if the input price has too many digits after the decimal place for the market - issues/2486
});
});
@@ -9,8 +9,6 @@ const Themes = {
type Theme = typeof Themes[keyof typeof Themes];
const isBrowser = typeof window !== 'undefined';
const validateTheme = (theme: string): theme is Theme => {
if (Object.values(Themes).includes(theme as Theme)) return true;
LocalStorage.removeItem(THEME_STORAGE_KEY);
@@ -18,7 +16,7 @@ const validateTheme = (theme: string): theme is Theme => {
};
const setThemeClassName = (theme: Theme) => {
if (isBrowser) {
if (typeof window !== 'undefined') {
if (theme === Themes.DARK) {
document.documentElement.classList.add(Themes.DARK);
} else {
@@ -28,13 +26,6 @@ const setThemeClassName = (theme: Theme) => {
};
const getCurrentTheme = () => {
// If an app is only dark theme then the page will be rendered with
// the dark class already applied. In this case return early with state
// set to dark
if (isBrowser && document.documentElement.classList.contains(Themes.DARK)) {
return Themes.DARK;
}
const storedTheme = LocalStorage.getItem(THEME_STORAGE_KEY);
if (storedTheme && validateTheme(storedTheme)) {
@@ -43,7 +34,7 @@ const getCurrentTheme = () => {
}
const theme =
isBrowser &&
typeof window !== 'undefined' &&
typeof window.matchMedia === 'function' && // jest test environment matchMedia is undefined
window.matchMedia('(prefers-color-scheme: dark)').matches
? Themes.DARK