-
Notifications
You must be signed in to change notification settings - Fork 7
/
poolies.txt
75 lines (66 loc) · 14.6 KB
/
poolies.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
Hi Pool fren!
How many FYTokens can I get Hi Pool fren!
for `uint baseIn`? How much base do I need
/ to get `uint fyTokenOut`?
*****
/ GUY \ ┌─────────┐ ***** /
(^^^| ********** ┌──────────────┐ │no │ / GUY \ ┌─────────┐ ┌─────────┐
\(\/ | - - | │$ $│ │lifeguard│ (^^^| ********** ┌──────────────┐ │no │ │no │
\ \ . O O . │ ┌────────────┴─┐ hmm, let's see └─┬─────┬─┘ ==+ \(\/ | - - | │$ $│ │lifeguard│ │lifeguard│
\ \ | ~ | │ │$ $│ │ │ =======+ \ \ . O O . │ ┌────────────┴─┐ └─┬─────┬─┘ ==+ └─┬─────┬─┘ ==+
\ \ \ == / │ │ `baseIn` │ \ _____│_____│______ |+ \ \ | ~ | │ │$ $│ │ │ =======+ │ │ =======+
\ \___| |___ │$│ │ .-'"___________________`-.|+ \ \ \ == / │ │ B A S E │ _____│_____│______ |+ _____│_____│______ |+
\ / \__/ \ └─┤$ $│ ( .'" '-.)+ \ \___| |___ │$│ ??? │ .-'"___________________`-.|+ .-'"___________________`-.|+
\ \ └──────────────┘ |`-..__________________..-'|+ \ / \__/ \ └─┤$ $│ ( .'" '-.)+ ( .'" '-.)+
--| GUY |\_/\ / / | |+ \ \ └──────────────┘ |`-..__________________..-'|+ |`-..__________________..-'|+
| | \ \/ / | |+ --| GUY |\_/\ / / | |+ | |+
| | \ / _......._ /`| --- --- |+ | | \ \/ / | |+ | |+
| | \_/ .-:::::::::::-. / /| ( ) ( ) |+ | | \ / _......._ /`| --- --- |+ _......._ /`| --- --- |+
|______| .:::::::::::::::::. / / | |+ | | \_/ .-:::::::::::-. / /| ( ) ( ) |+ .-:::::::::::-. / /| ( ) ( ) |+
|__X___| : _______ __ __ : _.-" ; | [ |+ |______| .:::::::::::::::::. / / | |+ .:::::::::::::::::. / / | |+
| | :: | || | | |::),.-' | ---------- |+ |__X___| : _______ __ __ : _.-" ; | [ |+ : _______ __ __ : _.-" ; | [ |+
| | | ::: | ___|| |_| |:::/ \ \________/ /+ | | :: | || | | |::),.-' | ---------- |+ :: | || | | |::),.-' | ---------- |+
| | _| ::: | |___ | |::: `-..__________________..-' += | | | ::: | ___|| |_| |:::/ \ \________/ /+ ::: | ___|| |_| |:::/ \ \________/ /+
| | | ::: | ___||_ _|::: | | | | | | _| ::: | |___ | |::: `-..__________________..-' += ::: | |___ | |::: `-..__________________..-' +=
| | | ::: | | | | ::: | | | | | | | ::: | ___||_ _|::: | | | | ::: | ___||_ _|::: | | | |
( ( | :: |___| |___| :: | | | | | | | ::: | | | | ::: | | | | ::: | | | | ::: | | | |
| | | : ??? : T----T T----T ( ( | :: |___| |___| :: | | | | :: |___| |___| :: | | | |
| | | `:::: ::' _..._L____J L____J _..._ | | | : : T----T T----T : TOKEN : T----T T----T
_| | | `-:::::::::::-' .` "-. `% | | %` .-" `. | | | `:: `fyTokenOut` :' _..._L____J L____J _..._ `:::::::::::::::::' _..._L____J L____J _..._
(_____[__) `'''''''` / \ .: :. / \ _| | | `-:::::::::::-' .` "-. `% | | %` .-" `. `-:::::::::::-' .` "-. `% | | %` .-" `.
'-..___|_..=:` `-:=.._|___..-' (_____[__) `'''''''` / \ .: :. / \ `'''''''` / \ .: :. / \
`fyTokenOut` '-..___|_..=:` `-:=.._|___..-' '-..___|_..=:` `-:=.._|___..-'
Hi Pool fren! Hi Pool fren!
How much base can I get How many FYTokens do I need
for `uint fyTokenIn`? to get
_......._ _......._
***** .-:::::::::::-. ***** .-:::::::::::-.
/ GUY \ .:::::::::::::::::. / GUY \ .:::::::::::::::::.
(^^^| ********** : _______ __ __ : ┌─────────┐ (^^^| ********** : _______ __ __ : ┌─────────┐
\(\/ | - - | :: | || | | |:: │no │ \(\/ | - - | :: | || | | |:: │no │
\ \ . O O . ::: | ___|| |_| |::: │lifeguard│ \ \ . O O . ::: | ___|| |_| |::: │lifeguard│
\ \ | ~ | ::: | |___ | |::: └─┬─────┬─┘ ==+ \ \ | ~ | ::: | |___ | |::: └─┬─────┬─┘ ==+
\ \ \ == / ::: | ___||_ _|::: │ │ =======+ \ \ \ == / ::: | ___||_ _|::: │ │ =======+
\ \___| |___ ::: | | | | ::: _____│_____│______ |+ \ \___| |___ ::: | | | | ::: _____│_____│______ |+
\ / \__/ \ :: |___| |___| :: .-'"___________________`-.|+ \ / \__/ \ :: |___| |___| :: .-'"___________________`-.|+
\ \ : : ( .'" '-.)+ \ \ : ??? : ( .'" '-.)+
--| GUY |\_/\ / `:::`fyTokenIn`:::' |`-..__________________..-'|+ --| GUY |\_/\ / `::: ::' |`-..__________________..-'|+
| | \ \/ / `-:::::::::::-' | |+ | | \ \/ / `-:::::::::::-' | |+
| | \ / `'''''''` | |+ | | \ / `'''''''` | |+
| | \_/ | --- --- |+ | | \_/ | --- --- |+
|______| | ( ) ( ) |+ |______| | ( ) ( ) |+
|__X___| ┌──────────────┐ /`| |+ |__X___| ┌──────────────┐ /`| |+
| | │$ $│ / /| [ |+ | | │$ $│ / /| [ |+
| | | │ B A S E │ / / | ---------- |+ | | | │ `baseOut` │ / / | ---------- |+
| | _| │ ??? │\.-" ; \ \________/ /+ | | _| │ │\.-" ; \ \________/ /+
| | | │$ $│),.-' `-..__________________..-' += | | | │$ $│),.-' `-..__________________..-' +=
| | | └──────────────┘ | | | | | | | └──────────────┘ | | | |
( ( | | | | | ( ( | | | | |
| | | | | | | | | | | | | |
| | | T----T T----T | | | T----T T----T
_| | | _..._L____J L____J _..._ _| | | _..._L____J L____J _..._
(_____[__) .` "-. `% | | %` .-" `. (_____[__) .` "-. `% | | %` .-" `.
/ \ .: :. / \ / \ .: :. / \
'-..___|_..=:` `-:=.._|___..-' '-..___|_..=:` `-:=.._|___..-'
*/