Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

feat(apps): Spool.fi v2 support #3082

Closed
wants to merge 2 commits into from
Closed
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
Binary file added src/apps/spool-v2/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
132 changes: 132 additions & 0 deletions src/apps/spool-v2/contracts/abis/spool-lens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "smartVault",
"type": "address"
}
],
"name": "getSVTTotalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "strategies",
"type": "address[]"
},
{
"internalType": "address",
"name": "riskProvider",
"type": "address"
},
{
"internalType": "address",
"name": "allocationProvider",
"type": "address"
}
],
"name": "getSmartVaultAllocations",
"outputs": [
{
"internalType": "uint256[][]",
"name": "allocations",
"type": "uint256[][]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "smartVault",
"type": "address"
},
{
"internalType": "bool",
"name": "doFlush",
"type": "bool"
}
],
"name": "getSmartVaultAssetBalances",
"outputs": [
{
"internalType": "uint256[]",
"name": "balances",
"type": "uint256[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "smartVault",
"type": "address"
},
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "nftIds",
"type": "uint256[]"
}
],
"name": "getUserSVTBalance",
"outputs": [
{
"internalType": "uint256",
"name": "currentBalance",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "smartVault",
"type": "address"
},
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "nftIds",
"type": "uint256[]"
}
],
"name": "getUserSVTsfromNFTs",
"outputs": [
{
"internalType": "uint256[]",
"name": "nftSvts",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading
Loading