Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/protocol/tip20/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ By using TIP-20 tokens as quote tokens, the DEX benefits from the same payment-o
/>
<Card
description="Solidity reference implementation of the TIP-20 standard"
to="https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/TIP20.sol"
to="https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/TIP20.sol"
icon="lucide:file-text"
title="Reference Implementation"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/protocol/tip403/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ TIP-403 is Tempo's policy registry system that enables TIP-20 tokens to enforce
/>
<Card
description="Solidity reference implementation of the TIP-403 standard"
to="https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/TIP403Registry.sol"
to="https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/TIP403Registry.sol"
icon="lucide:file-text"
title="Reference Implementation"
/>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/protocol/tips/tip-1005.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ The fix requires:

## Reference implementation changes

The fix requires changes to two functions in [`docs/specs/src/StablecoinDEX.sol`](https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/StablecoinDEX.sol):
The fix requires changes to two functions in [`tips/ref-impls/src/StablecoinDEX.sol`](https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/StablecoinDEX.sol):

### 1. `_fillOrder` ([line 551-556](https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/StablecoinDEX.sol#L551-L556))
### 1. `_fillOrder` ([line 551-556](https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/StablecoinDEX.sol#L551-L556))

Add an optional `quoteOverride` parameter. When non-zero and the order is an ask, use `quoteOverride` directly for the maker's balance increment instead of computing `ceil(fillAmount * price)`.

Expand All @@ -73,7 +73,7 @@ uint128 quoteAmount = quoteOverride > 0
balances[order.maker][book.quote] += quoteAmount;
```

### 2. `_fillOrdersExactIn` ([line 923-926](https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/StablecoinDEX.sol#L923-L926))
### 2. `_fillOrdersExactIn` ([line 923-926](https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/StablecoinDEX.sol#L923-L926))

In the partial fill branch for asks, pass `remainingIn` as the quote override:

Expand Down
8 changes: 4 additions & 4 deletions vocs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default defineConfig({
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/TIP20.sol',
link: 'https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/TIP20.sol',
},
{
text: 'Rust Implementation',
Expand Down Expand Up @@ -279,7 +279,7 @@ export default defineConfig({
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/TIP403Registry.sol',
link: 'https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/TIP403Registry.sol',
},
{
text: 'Rust Implementation',
Expand Down Expand Up @@ -313,7 +313,7 @@ export default defineConfig({
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/FeeManager.sol',
link: 'https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/FeeManager.sol',
},
{
text: 'Rust Implementation',
Expand Down Expand Up @@ -393,7 +393,7 @@ export default defineConfig({
},
{
text: 'Reference Implementation',
link: 'https://github.com/tempoxyz/tempo/blob/main/docs/specs/src/stablecoinDex.sol',
link: 'https://github.com/tempoxyz/tempo/blob/main/tips/ref-impls/src/stablecoinDex.sol',
},
{
text: 'Rust Implementation',
Expand Down