Skip to content

Conversation

pscott
Copy link
Contributor

@pscott pscott commented Oct 10, 2025

Name (to be shown on DefiLlama):

Uncap Finance

Twitter Link:

https://x.com/uncapfinance

List of audit links if any:

https://www.chainsecurity.com/security-audit/uncap-finance

Website Link:

https://uncap.finance/

Logo (High resolution, will be shown with rounded borders):

Uncap Logo  (White logo_Orange bg))

Current TVL:

$400k

Chain:

Starknet

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama):

Overcollaterized BTC-backed stablecoin on Starknet

Token address and ticker if any:

Stablecoin: USDU: https://voyager.online/contract/0x02f94539f80158f9a48a7acf3747718dfbec9b6f639e2742c1fb44ae7ab5aa04

Category (full list at https://defillama.com/categories) *Please choose only one:

CDP

Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):

Pragma + Chainlink

Implementation Details: Briefly describe how the oracle is integrated into your project:

Pragma's WBTC price is used, and Chainlink is used as fallback.

Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:

Detailed in audit: https://www.chainsecurity.com/security-audit/uncap-finance

forkedFrom (Does your project originate from another project):

Cairo port of Liquity v2 (had to be re-written in Cairo)

methodology (what is being counted as tvl, how is tvl being calculated):

Total number of collateral deposited to the protocol

Github org/user (Optional, if your code is open source, we can track activity):

http://github.com/uncaplabs

@llamabutler
Copy link

The adapter at projects/uncap-finance exports TVL:

starknet                  445.07 k

total                    445.07 k 

@pscott
Copy link
Contributor Author

pscott commented Oct 10, 2025

Question:

  1. We use a CollateralWrapper (0x75d9e518f46a9ca0404fb0a7d386ce056dadf57fd9a0e8659772cb517be4a18) to wrap WBTC. The TVL is currently computed by checking the balanceOf the CollateralWrapper. In an ideal scenario, we would check the balanceOf (in CollateralWrapper) of our DefaultPool and ActivePool. But if we do this, we have no price because the CollateralWrapper is listed no where
  2. WBTC (as currently set) outputs:
Building prices get queries for 2 tokens
Balance table for [starknet] Unrecognized tokens
┌─────────┬──────┬────────┬───────────┬───────────────────────────────────────────────────────────────────────────────┬───────────┐
│ (index) │ name │ symbol │ balance   │ label                                                                         │ decimals  │
├─────────┼──────┼────────┼───────────┼───────────────────────────────────────────────────────────────────────────────┼───────────┤
│ 0       │ '-'  │ '-'    │ 261537590 │ 'starknet:0x075d9e518f46a9ca0404fb0a7d386ce056dadf57fd9a0e8659772cb517be4a18' │ undefined │
└─────────┴──────┴────────┴───────────┴───────────────────────────────────────────────────────────────────────────────┴───────────┘
--- starknet ---
WBTC                      317.65 k
Total: 317.65 k 

--- tvl ---
WBTC                      317.65 k
Total: 317.65 k 

------ TVL ------
starknet                  317.65 k

total                    317.65 k 

Where can I specify name symbol and decimals?

@waynebruce0x
Copy link
Collaborator

Who deployed the wrapper?

@waynebruce0x waynebruce0x self-assigned this Oct 10, 2025
@pscott
Copy link
Contributor Author

pscott commented Oct 10, 2025

Who deployed the wrapper?

We did. It's still upgradeable, but we will renounce ownership.
Our protocol went live on Tuesday, so we are waiting to make sure everything is fine.

});

api.addTokens([WBTC_CONTRACT], [wrapperBalance])
api.add(WRAPPED_WBTC_CONTRACT, wrapperBalance)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this, we will just count the WBTC in the wrapper

Copy link
Contributor Author

@pscott pscott Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fee103d

removed the api.addTokens line

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so we should now just be returning a balance of WBTC_CONTRACT does that make sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now returning the balance, in WBTC, of the WWBTC_CONTRACT would be enough

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but since youre using the wrapper address in your exported balances we have a TVL of zero since that asset isnt priced yet. Please use WBTC_CONTRACT

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had misunderstood your earlier comment. Fixed in e08044c

@llamabutler
Copy link

The adapter at projects/uncap-finance exports TVL:

starknet                  0

total                    0 

@llamabutler
Copy link

The adapter at projects/uncap-finance exports TVL:

starknet                  459.60 k

total                    459.60 k 

@waynebruce0x waynebruce0x merged commit c76eca9 into DefiLlama:main Oct 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants