Skip to content

Commit 2d4d562

Browse files
committed
fix(docs): remove tabs to preserve sidebar links
1 parent ed77e2b commit 2d4d562

File tree

1 file changed

+15
-35
lines changed

1 file changed

+15
-35
lines changed

docs/ftso/guides/adapters.mdx

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ keywords:
1818
]
1919
---
2020

21-
import Tabs from "@theme/Tabs";
22-
import TabItem from "@theme/TabItem";
2321
import CodeBlock from "@theme/CodeBlock";
2422
import ChainlinkExample from "!!raw-loader!/examples/developer-hub-solidity/ChainlinkExample.sol";
2523
import chainlinkExample from "!!raw-loader!/examples/developer-hub-javascript/chainlinkExample.ts";
@@ -73,100 +71,82 @@ Since your contract now manages its own price updates, you need an external proc
7371
- **Create a Keeper Script**: This is a simple script that connects to the network and periodically calls the public `refresh()` function on your deployed contract.
7472
- **Run the Keeper**: This script ensures the price cached in your contract stays fresh. It replaces the need to rely on the oracle provider's keepers, giving you direct control over how often your prices are updated and how much you spend on gas.
7573

76-
<Tabs>
77-
<TabItem value="chainlink" label="Chainlink">
78-
79-
### FtsoChainlinkAdapter
74+
## FtsoChainlinkAdapter
8075

8176
The `FtsoChainlinkAdapter` implements Chainlink's `AggregatorV3Interface`. The example is an `AssetVault` contract that uses the FTSO price to value collateral for borrowing and lending.
8277

83-
#### Smart Contract: `ChainlinkExample.sol`
78+
### Smart Contract: `ChainlinkExample.sol`
8479

8580
<CodeBlock language="solidity" title="/contracts/adapters/ChainlinkExample.sol">
8681
{ChainlinkExample}
8782
</CodeBlock>
8883

89-
#### Off-Chain Script: `chainlinkExample.ts`
84+
### Off-Chain Script: `chainlinkExample.ts`
9085

9186
<CodeBlock language="typescript" title="/scripts/adapters/chainlinkExample.ts">
9287
{chainlinkExample}
9388
</CodeBlock>
9489

95-
</TabItem>
96-
<TabItem value="pyth" label="Pyth">
97-
98-
### FtsoPythAdapter
90+
## FtsoPythAdapter
9991

10092
The `FtsoPythAdapter` implements Pyth's `IPyth` interface. The example is a `PythNftMinter` contract that dynamically calculates a $1 minting fee based on the live FTSO price.
10193

102-
#### Smart Contract: `PythExample.sol`
94+
### Smart Contract: `PythExample.sol`
10395

10496
<CodeBlock language="solidity" title="/contracts/adapters/PythExample.sol">
10597
{PythExample}
10698
</CodeBlock>
10799

108-
#### Off-Chain Script: `pythExample.ts`
100+
### Off-Chain Script: `pythExample.ts`
109101

110102
<CodeBlock language="typescript" title="/scripts/adapters/pythExample.ts">
111103
{pythExample}
112104
</CodeBlock>
113105

114-
</TabItem>
115-
<TabItem value="api3" label="API3">
116-
117-
### FtsoApi3Adapter
106+
## FtsoApi3Adapter
118107

119108
The `FtsoApi3Adapter` implements the `IApi3ReaderProxy` interface. The example is a `PriceGuesser` prediction market that uses the FTSO price to settle bets.
120109

121-
#### Smart Contract: `Api3Example.sol`
110+
### Smart Contract: `Api3Example.sol`
122111

123112
<CodeBlock language="solidity" title="/contracts/adapters/Api3Example.sol">
124113
{Api3Example}
125114
</CodeBlock>
126115

127-
#### Off-Chain Script: `api3Example.ts`
116+
### Off-Chain Script: `api3Example.ts`
128117

129118
<CodeBlock language="typescript" title="/scripts/adapters/api3Example.ts">
130119
{api3Example}
131120
</CodeBlock>
132121

133-
</TabItem>
134-
<TabItem value="band" label="Band">
135-
136-
### FtsoBandAdapter
122+
## FtsoBandAdapter
137123

138124
The `FtsoBandAdapter` implements Band Protocol's `IStdReference` interface. The example is a `PriceTriggeredSafe` that locks withdrawals during high market volatility, detected by checking a basket of FTSO prices.
139125

140-
#### Smart Contract: `BandExample.sol`
126+
### Smart Contract: `BandExample.sol`
141127

142128
<CodeBlock language="solidity" title="/contracts/adapters/BandExample.sol">
143129
{BandExample}
144130
</CodeBlock>
145131

146-
#### Off-Chain Script: `bandExample.ts`
132+
### Off-Chain Script: `bandExample.ts`
147133

148134
<CodeBlock language="typescript" title="/scripts/adapters/bandExample.ts">
149135
{bandExample}
150136
</CodeBlock>
151137

152-
</TabItem>
153-
<TabItem value="chronicle" label="Chronicle">
154-
155-
### FtsoChronicleAdapter
138+
## FtsoChronicleAdapter
156139

157140
The `FtsoChronicleAdapter` implements the `IChronicle` interface. The example is a `DynamicNftMinter` that mints NFTs of different tiers based on the live FTSO asset price.
158141

159-
#### Smart Contract: `ChronicleExample.sol`
142+
### Smart Contract: `ChronicleExample.sol`
160143

161144
<CodeBlock language="solidity" title="/contracts/adapters/ChronicleExample.sol">
162145
{ChronicleExample}
163146
</CodeBlock>
164147

165-
#### Off-Chain Script: `chronicleExample.ts`
148+
### Off-Chain Script: `chronicleExample.ts`
166149

167150
<CodeBlock language="typescript" title="/scripts/adapters/chronicleExample.ts">
168151
{chronicleExample}
169152
</CodeBlock>
170-
171-
</TabItem>
172-
</Tabs>

0 commit comments

Comments
 (0)