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

Commit

Permalink
feat(apps): Spool.fi v2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tadej-solidant committed Jan 18, 2024
1 parent 03c38dd commit 29db317
Show file tree
Hide file tree
Showing 20 changed files with 9,040 additions and 0 deletions.
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

0 comments on commit 29db317

Please sign in to comment.