1
- reset
2
- new-account -> act
1
+ //reset
2
+ //new-account -> act
3
+ //show $act
3
4
4
- publish ./dependencies/oracle_placeholder -> oracle_package
5
- call-function $oracle_package OraclePlaceholder new -> oracle_component
6
-
7
- publish . -> package
8
- call-function $package RaiTest new $oracle_component -> component adminbadge minterbadge position rai
9
- call-method $component open_position 500,030000000000000000000000000000000000000000000000000004
10
- call-method $component draw 1,$position 5
11
- call-method $component close_position_with_payment 1,$position 5,$rai
5
+ ////publish ./dependencies/oracle_placeholder --manifest rtm/publish_oracle.rtm
6
+ ////call-function $oracle_package OraclePlaceholder new --manifest rtm/instantiate_oracle.rtm
7
+ ////publish . --manifest rtm/publish_rai_lending_platform.rtm
8
+ ////call-function $package RaiTest new $oracle_component --manifest rtm/instantiate_rai_lending_platform.rtm
9
+ ////call-method $component open_position 500,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag --manifest rtm/open_position.rtm
10
+ ////call-method $component draw 1,$position 5 --manifest rtm/draw.rtm
11
+ ////call-method $component close_position_with_payment 1,$position 5,$rai --manifest rtm/close_position_with_payment.rtm
12
12
13
- reset
14
- new-account -> act
13
+ //publish ./dependencies/oracle_placeholder -> oracle_package
14
+ //call-function $oracle_package OraclePlaceholder new -> oracle_component
15
15
16
- publish ./dependencies/oracle_placeholder -> oracle_package
17
- call-function $oracle_package OraclePlaceholder new -> oracle_component
16
+ //publish . -> package
17
+ //call-function $package RaiTest new $oracle_component -> component adminbadge minterbadge position rai
18
+ //call-method $component open_position 500,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
19
+ //call-method $component draw 1,$position 5
20
+ //call-method $component close_position_with_payment 1,$position 5,$rai
18
21
19
- publish . -> package
20
- call-function $package RaiTest new $oracle_component -> component adminbadge minterbadge position rai
21
- call-method $component open_position 500,030000000000000000000000000000000000000000000000000004
22
- call-method $component draw 1,$position 5
23
- set-current-epoch 15000
24
- call-method $component paydown 1,$position 5,$rai
25
- call-method $component add_collateral 1,$position 20,030000000000000000000000000000000000000000000000000004
26
- call-method $component partial_withdraw_collateral 1,$position 400
22
+ //reset
23
+ //new-account -> act
24
+ //show $act
25
+ //
26
+ //publish ./dependencies/oracle_placeholder -> oracle_package
27
+ //call-function $oracle_package OraclePlaceholder new -> oracle_component
28
+ //
29
+ //publish . -> package
30
+ //call-function $package RaiTest new $oracle_component -> component adminbadge minterbadge position rai
31
+ //call-method $component open_position 500,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
32
+ //call-method $component draw 1,$position 5
33
+ //set-current-epoch 15000
34
+ //call-method $component paydown 1,$position 5,$rai
35
+ //call-method $component add_collateral 1,$position 20,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
36
+ //call-method $component partial_withdraw_collateral 1,$position 400
27
37
28
38
reset
29
39
new-account -> act
@@ -33,13 +43,13 @@ call-function $oracle_package OraclePlaceholder new -> oracle_component
33
43
34
44
publish . -> package
35
45
call-function $package RaiTest new $oracle_component -> component adminbadge minterbadge position rai
36
- call-method $component open_position 500,030000000000000000000000000000000000000000000000000004
37
- call-method $component draw #0000000000000000 ,$position 30
46
+ call-method $component open_position 50,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
47
+ call-method $component draw #0a0000000000000000 ,$position 3
38
48
set-current-epoch 15000
39
- call-method $component open_position 1000,030000000000000000000000000000000000000000000000000004
40
- call-method $component draw #0000000000000001 ,$position 50
49
+ call-method $component open_position 100,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
50
+ call-method $component draw #0a0100000000000000 ,$position 5
41
51
call-method $oracle_component set_price .075
42
- call-method $component liquidate 0000000000000000 50 ,$rai
52
+ call-method $component liquidate 0a0000000000000000 5 ,$rai
43
53
44
54
reset
45
55
new-account -> act
@@ -49,15 +59,15 @@ call-function $oracle_package OraclePlaceholder new -> oracle_component
49
59
50
60
publish . -> package
51
61
call-function $package RaiTest new $oracle_component -> component adminbadge minterbadge position rai
52
- call-method $component open_position 500,030000000000000000000000000000000000000000000000000004
53
- call-method $component draw #0000000000000000 ,$position 30
62
+ call-method $component open_position 50,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
63
+ call-method $component draw #0a0000000000000000 ,$position 3
54
64
set-current-epoch 15000
55
- call-method $component open_position 1000,030000000000000000000000000000000000000000000000000004
56
- call-method $component draw #0000000000000001 ,$position 50
65
+ call-method $component open_position 100,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
66
+ call-method $component draw #0a0100000000000000 ,$position 5
57
67
call-method $oracle_component set_price .01
58
- call-method $component liquidate 0000000000000000 50 ,$rai
68
+ call-method $component liquidate 0a0000000000000000 5 ,$rai
59
69
call-method $component check_protocol_solvency
60
- call-method $component redeem 48.46186973689145765 ,$rai
70
+ call-method $component redeem 4.846186973689139873 ,$rai
61
71
62
72
reset
63
73
new-account -> act
@@ -67,11 +77,11 @@ call-function $oracle_package OraclePlaceholder new -> oracle_component
67
77
68
78
publish . -> package
69
79
call-function $package RaiTest new $oracle_component -> component adminbadge minterbadge position rai
70
- call-method $component open_position 500,030000000000000000000000000000000000000000000000000004
71
- call-method $component draw #0000000000000000 ,$position 33
80
+ call-method $component open_position 50,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
81
+ call-method $component draw #0a0000000000000000 ,$position 3.3
72
82
set-current-epoch 15000
73
- call-method $component open_position 1000,030000000000000000000000000000000000000000000000000004
74
- call-method $component draw #0000000000000001 ,$position 50
75
- call-method $component open_position 2500,030000000000000000000000000000000000000000000000000004
76
- call-method $component draw #0000000000000002 ,$position 100
83
+ call-method $component open_position 100,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
84
+ call-method $component draw #0a0100000000000000 ,$position 5
85
+ call-method $component open_position 250,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
86
+ call-method $component draw #0a0200000000000000 ,$position 10
77
87
call-method $component print_all_positions
0 commit comments