File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Binance Oracle
2
+
3
+ ## Introduction
4
+
5
+ This oracle fetchs prices of assets from Binance on-chain oracle.
6
+
7
+ ## Solidity APIs
8
+
9
+ ### initialize
10
+
11
+ ``` solidity
12
+ function initialize(contract FeedRegistryInterface feed) public
13
+ ```
14
+
15
+ Sets the contracts required to fetch price
16
+
17
+ #### Parameters
18
+
19
+ | Name | Type | Description |
20
+ | ---- | ---- | ----------- |
21
+ | feed | contract FeedRegistryInterface | Address of binance oracle feed registry. |
22
+
23
+ ### getUnderlyingPrice
24
+
25
+ ``` solidity
26
+ function getUnderlyingPrice(contract VBep20Interface vToken) public view returns (uint256)
27
+ ```
28
+
29
+ Gets the price of vToken from binance oracle
30
+
31
+ #### Parameters
32
+
33
+ | Name | Type | Description |
34
+ | ---- | ---- | ----------- |
35
+ | vToken | contract VBep20Interface | Address of the vToken |
36
+
37
+ #### Return Values
38
+
39
+ | Name | Type | Description |
40
+ | ---- | ---- | ----------- |
41
+ | [ 0] | uint256 | price in USD |
You can’t perform that action at this time.
0 commit comments