Fixed Branding, Naming, Linking for Science/Research

This commit is contained in:
Carlos R. Mercado 2022-12-23 13:09:31 -05:00
parent 3b93d0ed41
commit 7a508cc0b7
12 changed files with 267 additions and 28 deletions

BIN
FLIPSIDE-BRAND-1-BLACK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
FLIPSIDE-BRAND-1-WHITE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -1,14 +1,16 @@
---
title: "eth_usdc_analysis"
title: "ETH USDC Retroactive Data Analysis"
author: "Charliemarketplace"
date: "`r Sys.Date()`"
output:
html_document:
css: "styles.css"
includes:
in_header: header.html
code_folding: hide
toc: yes
toc_float:
collapsed: false
editor_options:
toc: true
toc_float: true
editor_options:
chunk_output_type: console
---
@ -22,9 +24,7 @@ source("key_functions.R")
# Data
Using the accounting results detailed in `eth_usdc_retroactive.Rmd` and merging them
with metadata from unique Uniswap v3 positions available in `lp_actions.rds` (as detailed
in `collect_data.R`) to understand any patterns in Uniswap v3 positions profitability.
Using the accounting results detailed in [ETH-USDC Retroactive Data Collection](https://science.flipsidecrypto.xyz/ethusdc_data/) to understand any patterns in Uniswap v3 positions profitability.
- unique_id: The Uniswap v3 unique position, typically an NF_TOKEN_ID but for Vaults that
don't use NF_TOKEN_ID, the concatenation of NF_POSITION_MANAGER--TICK_LOWER--TICK_UPPER.

View File

@ -1,14 +1,16 @@
---
title: "Retroactive PnL for ETHUSDC 0.05%"
title: "ETH-USDC Retroactive Data Collection"
author: "Charliemarketplace"
date: "`r Sys.Date()`"
output:
html_document:
css: "styles.css"
includes:
in_header: header.html
code_folding: hide
toc: yes
toc_float:
collapsed: false
editor_options:
toc: true
toc_float: true
editor_options:
chunk_output_type: console
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -1,14 +1,16 @@
---
title: "Analysis of ETH-WBTC Results"
title: "ETH WBTC Retroactive Data Analysis"
author: "Charliemarketplace"
date: "`r Sys.Date()`"
output:
html_document:
css: "styles.css"
includes:
in_header: header.html
code_folding: hide
toc: yes
toc_float:
collapsed: false
editor_options:
toc: true
toc_float: true
editor_options:
chunk_output_type: console
---
@ -22,9 +24,7 @@ source("../key_functions.R")
# Data
Using the accounting results detailed in `ethbtc_retroactive.Rmd` and merging them
with metadata from unique Uniswap v3 positions available in `ethbtc_lp_actions.rds` (as detailed
in `collect_ethbtc_data.R`) to understand any patterns in Uniswap v3 positions profitability.
Using the accounting results detailed in [ETH-WBTC Retroactive Data Collection](https://science.flipsidecrypto.xyz/ethbtc_data/) to understand any patterns in Uniswap v3 positions profitability.
- unique_id: The Uniswap v3 unique position, typically an NF_TOKEN_ID but for Vaults that
don't use NF_TOKEN_ID, the concatenation of NF_POSITION_MANAGER--TICK_LOWER--TICK_UPPER.

View File

@ -1,14 +1,16 @@
---
title: "eth_btc_retroactive"
title: "ETH-WBTC Retroactive Data Collection"
author: "Charliemarketplace"
date: "`r Sys.Date()`"
output:
html_document:
css: "styles.css"
includes:
in_header: header.html
code_folding: hide
toc: yes
toc_float:
collapsed: false
editor_options:
toc: true
toc_float: true
editor_options:
chunk_output_type: console
---

View File

@ -0,0 +1,13 @@
name: ethbtc_retroactive
title: ethbtc_retroactive
username: carlos_mercado
account: carlos_mercado
server: science.flipsidecrypto.xyz
hostUrl: https://science.flipsidecrypto.xyz/__api__
appId: 225
bundleId: 719
url: https://science.flipsidecrypto.xyz/content/349dd39e-96cb-4b7b-80fb-b45c1618455c/
when: 1671818356.54021
lastSyncTime: 1671818356.54023
asMultiple: FALSE
asStatic: TRUE

112
ethbtc/styles.css Normal file
View File

@ -0,0 +1,112 @@
@import url('https://fonts.googleapis.com/css?family=Inter');
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
body {
background-color: #10151A;
background-position: center top;
background-size: 300px 117px;
padding-left: 10%;
padding-right: 10%;
color: #C4CDD5;
font-size: 18px;
font-weight: 400;
font-family: Inter;
margin-top: 10px;
}
hr {
width: 85%;
color: #C4CDD5;
}
.tocify {
background-color: #10151A;
font-size: 14px;
color: #C4CDD5;
border: 0;
}
.list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover {
background-color: #DC4F9C;
border-color: #DC4F9C;
}
.list-group-item {
background-color: #10151A;
}
h1 {
font-size: 1.4em;
padding-top: 10px;
color: #DC4F9C;
}
h2 {
font-size: 1.1em;
padding-top: 10px;
color: #6FCCDD;
}
h3 {
font-size: 1.1em;
padding-top: 10px;
color: white;
}
.plotly {
margin: 30px;
}
.rt-page-button-current {
color: #FFF;
}
.rt-thead {
background-color: #10151A;
color: #FFFFFF;
text-align: center;
vertical-align: middle;
}
.rt-th-content {
text-align: center;
vertical-align: middle;
}
.ReactTable {
background-color: #171e25;
color: #C4CDD5;
border: none;
font-family: Roboto Mono;
font-size: 0.8em;
}
.rt-th {
border: 0px solid #000000 !important;
padding-top: 15px;
padding-bottom: 15px;
font-weight: 400;
font-family: Inter;
}
.rt-tr {
padding-top: 5px;
padding-bottom: 5px;
}
.rt-pagination {
margin: 0;
background: #171e25;
opacity: 0.5;
border-bottom: 1px solid #C4CDD5;
border-top: 1px solid #C4CDD5;
}
.btn {
color: #FFF;
background: none;
border: none;
padding: 0;
}
#TOC {
margin: 71px 0px 20px 0px;
}

View File

@ -178,7 +178,6 @@ strategy_reference <- function(id_accounting, t0col, t1col, price_col, price_bas
}
get_eth_price <- function(min_block, max_block, api_key){
price_query <- {
"
@ -272,7 +271,6 @@ ORDER BY BLOCK_NUMBER DESC
prices = auto_paginate_query(price_query, api_key = api_key)
}
market_eth_price_at_block <- function(eth_prices, block){
eth_prices[eth_prices$BLOCK_NUMBER == block, "ETH_MARKET_PRICE"]
}

112
styles.css Normal file
View File

@ -0,0 +1,112 @@
@import url('https://fonts.googleapis.com/css?family=Inter');
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
body {
background-color: #10151A;
background-position: center top;
background-size: 300px 117px;
padding-left: 10%;
padding-right: 10%;
color: #C4CDD5;
font-size: 18px;
font-weight: 400;
font-family: Inter;
margin-top: 10px;
}
hr {
width: 85%;
color: #C4CDD5;
}
.tocify {
background-color: #10151A;
font-size: 14px;
color: #C4CDD5;
border: 0;
}
.list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover {
background-color: #DC4F9C;
border-color: #DC4F9C;
}
.list-group-item {
background-color: #10151A;
}
h1 {
font-size: 1.4em;
padding-top: 10px;
color: #DC4F9C;
}
h2 {
font-size: 1.1em;
padding-top: 10px;
color: #6FCCDD;
}
h3 {
font-size: 1.1em;
padding-top: 10px;
color: white;
}
.plotly {
margin: 30px;
}
.rt-page-button-current {
color: #FFF;
}
.rt-thead {
background-color: #10151A;
color: #FFFFFF;
text-align: center;
vertical-align: middle;
}
.rt-th-content {
text-align: center;
vertical-align: middle;
}
.ReactTable {
background-color: #171e25;
color: #C4CDD5;
border: none;
font-family: Roboto Mono;
font-size: 0.8em;
}
.rt-th {
border: 0px solid #000000 !important;
padding-top: 15px;
padding-bottom: 15px;
font-weight: 400;
font-family: Inter;
}
.rt-tr {
padding-top: 5px;
padding-bottom: 5px;
}
.rt-pagination {
margin: 0;
background: #171e25;
opacity: 0.5;
border-bottom: 1px solid #C4CDD5;
border-top: 1px solid #C4CDD5;
}
.btn {
color: #FFF;
background: none;
border: none;
padding: 0;
}
#TOC {
margin: 71px 0px 20px 0px;
}