Files
DefiLlama-Adapters/projects/strkfarm/erc4626.js
minato cb6c9188f9 ADDED XSTRK SENSEI (#13146)
Co-authored-by: ariyan-hashstack <ariyan_hashstack@hashstack.finance>
Co-authored-by: akiraonstarknet <zkdice@proton.me>
2025-01-17 13:45:32 +01:00

64 lines
1.1 KiB
JavaScript

const ERC4626Abi = [
{
"name": "asset",
"type": "function",
"inputs": [],
"outputs": [
{
"type": "core::starknet::contract_address::ContractAddress"
}
],
"state_mutability": "view"
},
{
"name": "balanceOf",
"type": "function",
"inputs": [
{
"name": "account",
"type": "core::starknet::contract_address::ContractAddress"
}
],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "view",
"customInput": 'address',
},
{
"name": "total_assets",
"type": "function",
"inputs": [],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "view"
},
{
"name": "preview_redeem",
"type": "function",
"inputs": [
{
"name": "shares",
"type": "core::integer::u256"
}
],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "view"
},
]
const ERC4626AbiMap = {}
ERC4626Abi.forEach(i => ERC4626AbiMap[i.name] = i)
module.exports = {
ERC4626AbiMap
}