@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
196 lines (195 loc) • 3.69 kB
JSON
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint32",
"name": "cooldownPeriod",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "unstakePeriod",
"type": "uint32"
}
],
"name": "CooldownUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "by",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "paused",
"type": "bool"
}
],
"name": "EmergencyPaused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "maxSlash",
"type": "uint16"
}
],
"name": "MaxSlashUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bool",
"name": "redeemable",
"type": "bool"
}
],
"name": "RedeemableUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalBeforeSlash",
"type": "uint256"
}
],
"name": "Slashed",
"type": "event"
},
{
"inputs": [],
"name": "isPaused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "cooldownPeriod",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "unstakePeriod",
"type": "uint32"
}
],
"name": "setCooldown",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "percentage",
"type": "uint16"
}
],
"name": "setMaxSlashablePercentage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "paused",
"type": "bool"
}
],
"name": "setPaused",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "redeemable",
"type": "bool"
}
],
"name": "setRedeemable",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "destination",
"type": "address"
},
{
"internalType": "uint256",
"name": "minAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxAmount",
"type": "uint256"
}
],
"name": "slashUnderlying",
"outputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "erc20Transfer",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]