Platform
Resources
Pricing
Sign in
Get started
sourcecred
Workspace
Fork
Published
By
Seth Benton
Edited
Fork of
MakerDAO SourceCred Trial
•
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
hash
=
"7bfd50abdda713d1235c8287016c60cc75062409"
Insert cell
last_week_hash
=
"9dad72755213bcd46c77c83729e6572aa5ba3f8e"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
balance
=
aliasMap
(
a
=>
{
return
pastPayout
.
get
(
a
)
+
fastPayout
.
get
(
a
)
+
slowPayout
.
get
(
a
)
;
}
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
totalProportion
=
aliasMap
(
(
a
)
=>
totalCred
.
get
(
a
)
/
sumTotalCred
)
Insert cell
totalCred
=
aliasMap
(
(
a
)
=>
d3
.
sum
(
intervalCred
.
has
(
a
)
?
intervalCred
.
get
(
a
)
.
slice
(
0
,
last_week_idx
+
1
)
:
0
)
)
Insert cell
Insert cell
sumTotalCred
=
d3
.
sum
(
Array
.
from
(
totalCred
.
values
(
)
)
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
percentFormat
=
d3
.
format
(
".1%"
)
Insert cell
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more