@1delta/margin-fetcher 0.0.238 → 0.0.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +169 -15
- package/dist/index.js.map +1 -1
- package/dist/lending/user-data/abis.d.ts.map +1 -1
- package/dist/lending/user-data/fetch-balances/parse.d.ts.map +1 -1
- package/dist/lending/user-data/fetch-balances/prepare.d.ts.map +1 -1
- package/dist/lending/user-data/fluid/index.d.ts +3 -0
- package/dist/lending/user-data/fluid/index.d.ts.map +1 -0
- package/dist/lending/user-data/fluid/userCallBuild.d.ts +21 -0
- package/dist/lending/user-data/fluid/userCallBuild.d.ts.map +1 -0
- package/dist/lending/user-data/fluid/userCallParse.d.ts +19 -0
- package/dist/lending/user-data/fluid/userCallParse.d.ts.map +1 -0
- package/dist/prices/oracle-prices/fetchers/fluid.d.ts +388 -0
- package/dist/prices/oracle-prices/fetchers/fluid.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../src/lending/user-data/abis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../src/lending/user-data/abis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AA0ChD,eAAO,MAAM,MAAM,GAAI,QAAQ,MAAM,QAiCpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/fetch-balances/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/fetch-balances/parse.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAuB,MAAM,4BAA4B,CAAA;AAajF,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAiFtE;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GACtC,SAAS,MAAM,EACf,YAAY,eAAe,EAAE,EAC7B,YAAY,GAAG,EAAE,EACjB,aAAa,2BAA2B,KACvC;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAA;CAwC9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/fetch-balances/prepare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/fetch-balances/prepare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AA0B/C,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,GAAG,GACX,OAAO,CAAC,IAAI,EAAE,CAAC,CAqBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/fluid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Call } from '../../../utils/multicall';
|
|
2
|
+
/**
|
|
3
|
+
* Number of multicall slots consumed by one `positionsByUser(account)` call.
|
|
4
|
+
*
|
|
5
|
+
* This is always 1 — the resolver returns every position across every vault
|
|
6
|
+
* in one shot as `(UserPosition[], VaultEntireData[])`. No per-vault
|
|
7
|
+
* fan-out needed.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FLUID_USER_CALL_COUNT = 1;
|
|
10
|
+
/**
|
|
11
|
+
* Build the user-data multicall descriptor for Fluid vaults.
|
|
12
|
+
*
|
|
13
|
+
* Single call: `VaultResolver.positionsByUser(account)` returns two parallel
|
|
14
|
+
* arrays — `UserPosition[]` (supply/borrow raw amounts per NFT) and
|
|
15
|
+
* `VaultEntireData[]` (full vault metadata for each position's vault).
|
|
16
|
+
*
|
|
17
|
+
* The parser groups by `constantVariables.vaultId` and emits one `UserData`
|
|
18
|
+
* per vault under `FLUID_<vaultId>`, matching the multi-market pattern.
|
|
19
|
+
*/
|
|
20
|
+
export declare const buildFluidUserCall: (chainId: string, _lender: string, account: string) => Call[];
|
|
21
|
+
//# sourceMappingURL=userCallBuild.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userCallBuild.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/fluid/userCallBuild.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAA;AAEtC;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,EACf,SAAS,MAAM,EACf,SAAS,MAAM,KACd,IAAI,EAWN,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LenderToLenderCrossPoolMeta, UserData } from '../utils/types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a [converter, expectedCallCount] tuple for Fluid user data.
|
|
4
|
+
*
|
|
5
|
+
* Single call `positionsByUser(account)` returns two parallel arrays:
|
|
6
|
+
* data[0] = (UserPosition[], VaultEntireData[])
|
|
7
|
+
*
|
|
8
|
+
* Each NFT is an independent position with its own health factor, so we
|
|
9
|
+
* model them as sub-accounts (same pattern as Init Capital). The nftId
|
|
10
|
+
* becomes the sub-account identifier.
|
|
11
|
+
*
|
|
12
|
+
* Output is keyed by `FLUID_<vaultId>` (multi-market). Within each vault,
|
|
13
|
+
* each NFT is a separate sub-account with two lending positions (collateral
|
|
14
|
+
* + loan side), its own health factor, and its own liquidation risk.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getFluidUserDataConverter: (lender: string, chainId: string, account: string, meta?: LenderToLenderCrossPoolMeta) => [(data: any[]) => {
|
|
17
|
+
[lender: string]: UserData;
|
|
18
|
+
} | undefined, number];
|
|
19
|
+
//# sourceMappingURL=userCallParse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userCallParse.d.ts","sourceRoot":"","sources":["../../../../src/lending/user-data/fluid/userCallParse.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,2BAA2B,EAC3B,QAAQ,EACT,MAAM,gBAAgB,CAAA;AAiBvB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,GACpC,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,SAAS,MAAM,EACf,OAAO,2BAA2B,KACjC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,GAAG,SAAS,EAAE,MAAM,CAuLtE,CAAA"}
|
|
@@ -733,6 +733,394 @@ export declare function getFluidAbi(): readonly [{
|
|
|
733
733
|
}];
|
|
734
734
|
readonly stateMutability: "view";
|
|
735
735
|
readonly type: "function";
|
|
736
|
+
}, {
|
|
737
|
+
readonly inputs: readonly [{
|
|
738
|
+
readonly name: "user_";
|
|
739
|
+
readonly type: "address";
|
|
740
|
+
}];
|
|
741
|
+
readonly name: "positionsByUser";
|
|
742
|
+
readonly outputs: readonly [{
|
|
743
|
+
readonly components: readonly [{
|
|
744
|
+
readonly name: "nftId";
|
|
745
|
+
readonly type: "uint256";
|
|
746
|
+
}, {
|
|
747
|
+
readonly name: "owner";
|
|
748
|
+
readonly type: "address";
|
|
749
|
+
}, {
|
|
750
|
+
readonly name: "isLiquidated";
|
|
751
|
+
readonly type: "bool";
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "isSupplyPosition";
|
|
754
|
+
readonly type: "bool";
|
|
755
|
+
}, {
|
|
756
|
+
readonly name: "tick";
|
|
757
|
+
readonly type: "int256";
|
|
758
|
+
}, {
|
|
759
|
+
readonly name: "tickId";
|
|
760
|
+
readonly type: "uint256";
|
|
761
|
+
}, {
|
|
762
|
+
readonly name: "beforeSupply";
|
|
763
|
+
readonly type: "uint256";
|
|
764
|
+
}, {
|
|
765
|
+
readonly name: "beforeBorrow";
|
|
766
|
+
readonly type: "uint256";
|
|
767
|
+
}, {
|
|
768
|
+
readonly name: "beforeDustBorrow";
|
|
769
|
+
readonly type: "uint256";
|
|
770
|
+
}, {
|
|
771
|
+
readonly name: "supply";
|
|
772
|
+
readonly type: "uint256";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "borrow";
|
|
775
|
+
readonly type: "uint256";
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "dustBorrow";
|
|
778
|
+
readonly type: "uint256";
|
|
779
|
+
}];
|
|
780
|
+
readonly name: "userPositions_";
|
|
781
|
+
readonly type: "tuple[]";
|
|
782
|
+
}, {
|
|
783
|
+
readonly components: readonly [{
|
|
784
|
+
readonly name: "vault";
|
|
785
|
+
readonly type: "address";
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "isSmartCol";
|
|
788
|
+
readonly type: "bool";
|
|
789
|
+
}, {
|
|
790
|
+
readonly name: "isSmartDebt";
|
|
791
|
+
readonly type: "bool";
|
|
792
|
+
}, {
|
|
793
|
+
readonly components: readonly [{
|
|
794
|
+
readonly name: "liquidity";
|
|
795
|
+
readonly type: "address";
|
|
796
|
+
}, {
|
|
797
|
+
readonly name: "factory";
|
|
798
|
+
readonly type: "address";
|
|
799
|
+
}, {
|
|
800
|
+
readonly name: "operateImplementation";
|
|
801
|
+
readonly type: "address";
|
|
802
|
+
}, {
|
|
803
|
+
readonly name: "adminImplementation";
|
|
804
|
+
readonly type: "address";
|
|
805
|
+
}, {
|
|
806
|
+
readonly name: "secondaryImplementation";
|
|
807
|
+
readonly type: "address";
|
|
808
|
+
}, {
|
|
809
|
+
readonly name: "deployer";
|
|
810
|
+
readonly type: "address";
|
|
811
|
+
}, {
|
|
812
|
+
readonly name: "supply";
|
|
813
|
+
readonly type: "address";
|
|
814
|
+
}, {
|
|
815
|
+
readonly name: "borrow";
|
|
816
|
+
readonly type: "address";
|
|
817
|
+
}, {
|
|
818
|
+
readonly components: readonly [{
|
|
819
|
+
readonly name: "token0";
|
|
820
|
+
readonly type: "address";
|
|
821
|
+
}, {
|
|
822
|
+
readonly name: "token1";
|
|
823
|
+
readonly type: "address";
|
|
824
|
+
}];
|
|
825
|
+
readonly name: "supplyToken";
|
|
826
|
+
readonly type: "tuple";
|
|
827
|
+
}, {
|
|
828
|
+
readonly components: readonly [{
|
|
829
|
+
readonly name: "token0";
|
|
830
|
+
readonly type: "address";
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "token1";
|
|
833
|
+
readonly type: "address";
|
|
834
|
+
}];
|
|
835
|
+
readonly name: "borrowToken";
|
|
836
|
+
readonly type: "tuple";
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "vaultId";
|
|
839
|
+
readonly type: "uint256";
|
|
840
|
+
}, {
|
|
841
|
+
readonly name: "vaultType";
|
|
842
|
+
readonly type: "uint256";
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "supplyExchangePriceSlot";
|
|
845
|
+
readonly type: "bytes32";
|
|
846
|
+
}, {
|
|
847
|
+
readonly name: "borrowExchangePriceSlot";
|
|
848
|
+
readonly type: "bytes32";
|
|
849
|
+
}, {
|
|
850
|
+
readonly name: "userSupplySlot";
|
|
851
|
+
readonly type: "bytes32";
|
|
852
|
+
}, {
|
|
853
|
+
readonly name: "userBorrowSlot";
|
|
854
|
+
readonly type: "bytes32";
|
|
855
|
+
}];
|
|
856
|
+
readonly name: "constantVariables";
|
|
857
|
+
readonly type: "tuple";
|
|
858
|
+
}, {
|
|
859
|
+
readonly components: readonly [{
|
|
860
|
+
readonly name: "supplyRateMagnifier";
|
|
861
|
+
readonly type: "uint16";
|
|
862
|
+
}, {
|
|
863
|
+
readonly name: "borrowRateMagnifier";
|
|
864
|
+
readonly type: "uint16";
|
|
865
|
+
}, {
|
|
866
|
+
readonly name: "collateralFactor";
|
|
867
|
+
readonly type: "uint16";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "liquidationThreshold";
|
|
870
|
+
readonly type: "uint16";
|
|
871
|
+
}, {
|
|
872
|
+
readonly name: "liquidationMaxLimit";
|
|
873
|
+
readonly type: "uint16";
|
|
874
|
+
}, {
|
|
875
|
+
readonly name: "withdrawalGap";
|
|
876
|
+
readonly type: "uint16";
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "liquidationPenalty";
|
|
879
|
+
readonly type: "uint16";
|
|
880
|
+
}, {
|
|
881
|
+
readonly name: "borrowFee";
|
|
882
|
+
readonly type: "uint16";
|
|
883
|
+
}, {
|
|
884
|
+
readonly name: "oracle";
|
|
885
|
+
readonly type: "address";
|
|
886
|
+
}, {
|
|
887
|
+
readonly name: "oraclePriceOperate";
|
|
888
|
+
readonly type: "uint256";
|
|
889
|
+
}, {
|
|
890
|
+
readonly name: "oraclePriceLiquidate";
|
|
891
|
+
readonly type: "uint256";
|
|
892
|
+
}, {
|
|
893
|
+
readonly name: "rebalancer";
|
|
894
|
+
readonly type: "address";
|
|
895
|
+
}, {
|
|
896
|
+
readonly name: "lastUpdateTimestamp";
|
|
897
|
+
readonly type: "uint256";
|
|
898
|
+
}];
|
|
899
|
+
readonly name: "configs";
|
|
900
|
+
readonly type: "tuple";
|
|
901
|
+
}, {
|
|
902
|
+
readonly components: readonly [{
|
|
903
|
+
readonly name: "lastStoredLiquiditySupplyExchangePrice";
|
|
904
|
+
readonly type: "uint256";
|
|
905
|
+
}, {
|
|
906
|
+
readonly name: "lastStoredLiquidityBorrowExchangePrice";
|
|
907
|
+
readonly type: "uint256";
|
|
908
|
+
}, {
|
|
909
|
+
readonly name: "lastStoredVaultSupplyExchangePrice";
|
|
910
|
+
readonly type: "uint256";
|
|
911
|
+
}, {
|
|
912
|
+
readonly name: "lastStoredVaultBorrowExchangePrice";
|
|
913
|
+
readonly type: "uint256";
|
|
914
|
+
}, {
|
|
915
|
+
readonly name: "liquiditySupplyExchangePrice";
|
|
916
|
+
readonly type: "uint256";
|
|
917
|
+
}, {
|
|
918
|
+
readonly name: "liquidityBorrowExchangePrice";
|
|
919
|
+
readonly type: "uint256";
|
|
920
|
+
}, {
|
|
921
|
+
readonly name: "vaultSupplyExchangePrice";
|
|
922
|
+
readonly type: "uint256";
|
|
923
|
+
}, {
|
|
924
|
+
readonly name: "vaultBorrowExchangePrice";
|
|
925
|
+
readonly type: "uint256";
|
|
926
|
+
}, {
|
|
927
|
+
readonly name: "supplyRateLiquidity";
|
|
928
|
+
readonly type: "uint256";
|
|
929
|
+
}, {
|
|
930
|
+
readonly name: "borrowRateLiquidity";
|
|
931
|
+
readonly type: "uint256";
|
|
932
|
+
}, {
|
|
933
|
+
readonly name: "supplyRateVault";
|
|
934
|
+
readonly type: "int256";
|
|
935
|
+
}, {
|
|
936
|
+
readonly name: "borrowRateVault";
|
|
937
|
+
readonly type: "int256";
|
|
938
|
+
}, {
|
|
939
|
+
readonly name: "rewardsOrFeeRateSupply";
|
|
940
|
+
readonly type: "int256";
|
|
941
|
+
}, {
|
|
942
|
+
readonly name: "rewardsOrFeeRateBorrow";
|
|
943
|
+
readonly type: "int256";
|
|
944
|
+
}];
|
|
945
|
+
readonly name: "exchangePricesAndRates";
|
|
946
|
+
readonly type: "tuple";
|
|
947
|
+
}, {
|
|
948
|
+
readonly components: readonly [{
|
|
949
|
+
readonly name: "totalSupplyVault";
|
|
950
|
+
readonly type: "uint256";
|
|
951
|
+
}, {
|
|
952
|
+
readonly name: "totalBorrowVault";
|
|
953
|
+
readonly type: "uint256";
|
|
954
|
+
}, {
|
|
955
|
+
readonly name: "totalSupplyLiquidityOrDex";
|
|
956
|
+
readonly type: "uint256";
|
|
957
|
+
}, {
|
|
958
|
+
readonly name: "totalBorrowLiquidityOrDex";
|
|
959
|
+
readonly type: "uint256";
|
|
960
|
+
}, {
|
|
961
|
+
readonly name: "absorbedSupply";
|
|
962
|
+
readonly type: "uint256";
|
|
963
|
+
}, {
|
|
964
|
+
readonly name: "absorbedBorrow";
|
|
965
|
+
readonly type: "uint256";
|
|
966
|
+
}];
|
|
967
|
+
readonly name: "totalSupplyAndBorrow";
|
|
968
|
+
readonly type: "tuple";
|
|
969
|
+
}, {
|
|
970
|
+
readonly components: readonly [{
|
|
971
|
+
readonly name: "withdrawLimit";
|
|
972
|
+
readonly type: "uint256";
|
|
973
|
+
}, {
|
|
974
|
+
readonly name: "withdrawableUntilLimit";
|
|
975
|
+
readonly type: "uint256";
|
|
976
|
+
}, {
|
|
977
|
+
readonly name: "withdrawable";
|
|
978
|
+
readonly type: "uint256";
|
|
979
|
+
}, {
|
|
980
|
+
readonly name: "borrowLimit";
|
|
981
|
+
readonly type: "uint256";
|
|
982
|
+
}, {
|
|
983
|
+
readonly name: "borrowableUntilLimit";
|
|
984
|
+
readonly type: "uint256";
|
|
985
|
+
}, {
|
|
986
|
+
readonly name: "borrowable";
|
|
987
|
+
readonly type: "uint256";
|
|
988
|
+
}, {
|
|
989
|
+
readonly name: "borrowLimitUtilization";
|
|
990
|
+
readonly type: "uint256";
|
|
991
|
+
}, {
|
|
992
|
+
readonly name: "minimumBorrowing";
|
|
993
|
+
readonly type: "uint256";
|
|
994
|
+
}];
|
|
995
|
+
readonly name: "limitsAndAvailability";
|
|
996
|
+
readonly type: "tuple";
|
|
997
|
+
}, {
|
|
998
|
+
readonly components: readonly [{
|
|
999
|
+
readonly name: "totalPositions";
|
|
1000
|
+
readonly type: "uint256";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly name: "topTick";
|
|
1003
|
+
readonly type: "int256";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly name: "currentBranch";
|
|
1006
|
+
readonly type: "uint256";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly name: "totalBranch";
|
|
1009
|
+
readonly type: "uint256";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly name: "totalBorrow";
|
|
1012
|
+
readonly type: "uint256";
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly name: "totalSupply";
|
|
1015
|
+
readonly type: "uint256";
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly components: readonly [{
|
|
1018
|
+
readonly name: "status";
|
|
1019
|
+
readonly type: "uint256";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly name: "minimaTick";
|
|
1022
|
+
readonly type: "int256";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly name: "debtFactor";
|
|
1025
|
+
readonly type: "uint256";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly name: "partials";
|
|
1028
|
+
readonly type: "uint256";
|
|
1029
|
+
}, {
|
|
1030
|
+
readonly name: "debtLiquidity";
|
|
1031
|
+
readonly type: "uint256";
|
|
1032
|
+
}, {
|
|
1033
|
+
readonly name: "baseBranchId";
|
|
1034
|
+
readonly type: "uint256";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly name: "baseBranchMinima";
|
|
1037
|
+
readonly type: "int256";
|
|
1038
|
+
}];
|
|
1039
|
+
readonly name: "currentBranchState";
|
|
1040
|
+
readonly type: "tuple";
|
|
1041
|
+
}];
|
|
1042
|
+
readonly name: "vaultState";
|
|
1043
|
+
readonly type: "tuple";
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly components: readonly [{
|
|
1046
|
+
readonly name: "modeWithInterest";
|
|
1047
|
+
readonly type: "bool";
|
|
1048
|
+
}, {
|
|
1049
|
+
readonly name: "supply";
|
|
1050
|
+
readonly type: "uint256";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly name: "withdrawalLimit";
|
|
1053
|
+
readonly type: "uint256";
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly name: "lastUpdateTimestamp";
|
|
1056
|
+
readonly type: "uint256";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly name: "expandPercent";
|
|
1059
|
+
readonly type: "uint256";
|
|
1060
|
+
}, {
|
|
1061
|
+
readonly name: "expandDuration";
|
|
1062
|
+
readonly type: "uint256";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly name: "baseWithdrawalLimit";
|
|
1065
|
+
readonly type: "uint256";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly name: "withdrawableUntilLimit";
|
|
1068
|
+
readonly type: "uint256";
|
|
1069
|
+
}, {
|
|
1070
|
+
readonly name: "withdrawable";
|
|
1071
|
+
readonly type: "uint256";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly name: "decayEndTimestamp";
|
|
1074
|
+
readonly type: "uint256";
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly name: "decayAmount";
|
|
1077
|
+
readonly type: "uint256";
|
|
1078
|
+
}];
|
|
1079
|
+
readonly name: "liquidityUserSupplyData";
|
|
1080
|
+
readonly type: "tuple";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly components: readonly [{
|
|
1083
|
+
readonly name: "modeWithInterest";
|
|
1084
|
+
readonly type: "bool";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly name: "borrow";
|
|
1087
|
+
readonly type: "uint256";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly name: "borrowLimit";
|
|
1090
|
+
readonly type: "uint256";
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly name: "lastUpdateTimestamp";
|
|
1093
|
+
readonly type: "uint256";
|
|
1094
|
+
}, {
|
|
1095
|
+
readonly name: "expandPercent";
|
|
1096
|
+
readonly type: "uint256";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly name: "expandDuration";
|
|
1099
|
+
readonly type: "uint256";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly name: "baseBorrowLimit";
|
|
1102
|
+
readonly type: "uint256";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly name: "maxBorrowLimit";
|
|
1105
|
+
readonly type: "uint256";
|
|
1106
|
+
}, {
|
|
1107
|
+
readonly name: "borrowableUntilLimit";
|
|
1108
|
+
readonly type: "uint256";
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly name: "borrowable";
|
|
1111
|
+
readonly type: "uint256";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly name: "borrowLimitUtilization";
|
|
1114
|
+
readonly type: "uint256";
|
|
1115
|
+
}];
|
|
1116
|
+
readonly name: "liquidityUserBorrowData";
|
|
1117
|
+
readonly type: "tuple";
|
|
1118
|
+
}];
|
|
1119
|
+
readonly name: "vaultsData_";
|
|
1120
|
+
readonly type: "tuple[]";
|
|
1121
|
+
}];
|
|
1122
|
+
readonly stateMutability: "view";
|
|
1123
|
+
readonly type: "function";
|
|
736
1124
|
}];
|
|
737
1125
|
/** Fluid Oracle Fetcher module */
|
|
738
1126
|
export declare const fluidFetcher: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluid.d.ts","sourceRoot":"","sources":["../../../../src/prices/oracle-prices/fetchers/fluid.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,aAAa,EAEb,gBAAgB,EAChB,YAAY,EACb,MAAM,UAAU,CAAA;AAoCjB;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,CAAC;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,EAAE,MAAM,CAAA;QAClB,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAC,CAAA;CACH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,GACd,aAAa,CAAC,cAAc,CAAC,EAAE,CAoBjC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",
|
|
6
6
|
"files": [
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"async-retry": "^1.3.3",
|
|
24
24
|
"lodash": "^4.17.23",
|
|
25
|
-
"@1delta/
|
|
26
|
-
"@1delta/dex-registry": "0.0.99",
|
|
25
|
+
"@1delta/abis": "0.0.13",
|
|
27
26
|
"@1delta/lender-registry": "0.0.24",
|
|
28
27
|
"@1delta/calldata-sdk": "0.0.143",
|
|
29
|
-
"@1delta/
|
|
28
|
+
"@1delta/dex-registry": "0.0.99",
|
|
29
|
+
"@1delta/providers": "0.0.55"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/async-retry": "^1.4.9",
|