Skip to content

Commit b91b91d

Browse files
committed
updated bill broker abi and redeployed subgraph
1 parent aab4d8d commit b91b91d

File tree

1 file changed

+72
-38
lines changed

1 file changed

+72
-38
lines changed

spot-staking-subgraph/abis/BillBroker.json

Lines changed: 72 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"name": "InvalidPerc",
1515
"type": "error"
1616
},
17+
{
18+
"inputs": [],
19+
"name": "InvalidRange",
20+
"type": "error"
21+
},
1722
{
1823
"inputs": [],
1924
"name": "SlippageTooHigh",
@@ -31,12 +36,12 @@
3136
},
3237
{
3338
"inputs": [],
34-
"name": "UnexpectedARDelta",
39+
"name": "UnexpectedDecimals",
3540
"type": "error"
3641
},
3742
{
3843
"inputs": [],
39-
"name": "UnexpectedDecimals",
44+
"name": "UnexpectedRangeDelta",
4045
"type": "error"
4146
},
4247
{
@@ -329,6 +334,32 @@
329334
"stateMutability": "view",
330335
"type": "function"
331336
},
337+
{
338+
"inputs": [],
339+
"name": "MAX_ASSET_RATIO",
340+
"outputs": [
341+
{
342+
"internalType": "uint256",
343+
"name": "",
344+
"type": "uint256"
345+
}
346+
],
347+
"stateMutability": "view",
348+
"type": "function"
349+
},
350+
{
351+
"inputs": [],
352+
"name": "MAX_FEE_FACTOR",
353+
"outputs": [
354+
{
355+
"internalType": "uint256",
356+
"name": "",
357+
"type": "uint256"
358+
}
359+
],
360+
"stateMutability": "view",
361+
"type": "function"
362+
},
332363
{
333364
"inputs": [],
334365
"name": "MINIMUM_LIQUIDITY",
@@ -355,6 +386,19 @@
355386
"stateMutability": "view",
356387
"type": "function"
357388
},
389+
{
390+
"inputs": [],
391+
"name": "TWO",
392+
"outputs": [
393+
{
394+
"internalType": "uint256",
395+
"name": "",
396+
"type": "uint256"
397+
}
398+
],
399+
"stateMutability": "view",
400+
"type": "function"
401+
},
358402
{
359403
"inputs": [
360404
{
@@ -627,7 +671,7 @@
627671
"outputs": [
628672
{
629673
"internalType": "uint256",
630-
"name": "",
674+
"name": "mintAmt",
631675
"type": "uint256"
632676
}
633677
],
@@ -692,7 +736,7 @@
692736
"outputs": [
693737
{
694738
"internalType": "uint256",
695-
"name": "",
739+
"name": "mintAmt",
696740
"type": "uint256"
697741
}
698742
],
@@ -760,11 +804,6 @@
760804
"name": "usdAmtOut",
761805
"type": "uint256"
762806
},
763-
{
764-
"internalType": "uint256",
765-
"name": "lpFeeUsdAmt",
766-
"type": "uint256"
767-
},
768807
{
769808
"internalType": "uint256",
770809
"name": "protocolFeeUsdAmt",
@@ -787,7 +826,7 @@
787826
"type": "uint256"
788827
}
789828
],
790-
"name": "computePerpToUSDSwapFeePerc",
829+
"name": "computePerpToUSDSwapFeeFactor",
791830
"outputs": [
792831
{
793832
"internalType": "uint256",
@@ -864,11 +903,6 @@
864903
"name": "perpAmtOut",
865904
"type": "uint256"
866905
},
867-
{
868-
"internalType": "uint256",
869-
"name": "lpFeePerpAmt",
870-
"type": "uint256"
871-
},
872906
{
873907
"internalType": "uint256",
874908
"name": "protocolFeePerpAmt",
@@ -910,7 +944,7 @@
910944
"type": "uint256"
911945
}
912946
],
913-
"name": "computeUSDToPerpSwapFeePerc",
947+
"name": "computeUSDToPerpSwapFeeFactor",
914948
"outputs": [
915949
{
916950
"internalType": "uint256",
@@ -1068,7 +1102,7 @@
10681102
}
10691103
],
10701104
"internalType": "struct Range",
1071-
"name": "perpToUSDSwapFeePercs",
1105+
"name": "perpToUSDSwapFeeFactors",
10721106
"type": "tuple"
10731107
},
10741108
{
@@ -1085,7 +1119,7 @@
10851119
}
10861120
],
10871121
"internalType": "struct Range",
1088-
"name": "usdToPerpSwapFeePercs",
1122+
"name": "usdToPerpSwapFeeFactors",
10891123
"type": "tuple"
10901124
},
10911125
{
@@ -1144,8 +1178,8 @@
11441178
"type": "address"
11451179
},
11461180
{
1147-
"internalType": "contract ISpotPricingStrategy",
1148-
"name": "pricingStrategy_",
1181+
"internalType": "contract IPerpPricer",
1182+
"name": "oracle_",
11491183
"type": "address"
11501184
}
11511185
],
@@ -1180,6 +1214,19 @@
11801214
"stateMutability": "view",
11811215
"type": "function"
11821216
},
1217+
{
1218+
"inputs": [],
1219+
"name": "oracle",
1220+
"outputs": [
1221+
{
1222+
"internalType": "contract IPerpPricer",
1223+
"name": "",
1224+
"type": "address"
1225+
}
1226+
],
1227+
"stateMutability": "view",
1228+
"type": "function"
1229+
},
11831230
{
11841231
"inputs": [],
11851232
"name": "owner",
@@ -1265,19 +1312,6 @@
12651312
"stateMutability": "view",
12661313
"type": "function"
12671314
},
1268-
{
1269-
"inputs": [],
1270-
"name": "pricingStrategy",
1271-
"outputs": [
1272-
{
1273-
"internalType": "contract ISpotPricingStrategy",
1274-
"name": "",
1275-
"type": "address"
1276-
}
1277-
],
1278-
"stateMutability": "view",
1279-
"type": "function"
1280-
},
12811315
{
12821316
"inputs": [],
12831317
"name": "protocolFeeCollector",
@@ -1574,7 +1608,7 @@
15741608
}
15751609
],
15761610
"internalType": "struct Range",
1577-
"name": "perpToUSDSwapFeePercs",
1611+
"name": "perpToUSDSwapFeeFactors",
15781612
"type": "tuple"
15791613
},
15801614
{
@@ -1591,7 +1625,7 @@
15911625
}
15921626
],
15931627
"internalType": "struct Range",
1594-
"name": "usdToPerpSwapFeePercs",
1628+
"name": "usdToPerpSwapFeeFactors",
15951629
"type": "tuple"
15961630
},
15971631
{
@@ -1626,12 +1660,12 @@
16261660
{
16271661
"inputs": [
16281662
{
1629-
"internalType": "contract ISpotPricingStrategy",
1630-
"name": "pricingStrategy_",
1663+
"internalType": "contract IPerpPricer",
1664+
"name": "oracle_",
16311665
"type": "address"
16321666
}
16331667
],
1634-
"name": "updatePricingStrategy",
1668+
"name": "updateOracle",
16351669
"outputs": [],
16361670
"stateMutability": "nonpayable",
16371671
"type": "function"

0 commit comments

Comments
 (0)