Skip to content
Merged
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ Function to add an allowance for the notary. Invoked only by the contract owner.
- `allocatorAddress`: Address of the notary to add allowance for.
- `amount`: The amount of allowance to add.

`decreaseAllowance(address allocatorAddress, uint256 amount) external onlyOwner`

Function to decrease an allowance for the notary. Invoked only by the contract owner.

- **Parameters:**
- `allocatorAddress`: Address of the notary to add allowance for.
- `amount`: The amount of allowance to decrease.

`setAllowance(address allocatorAddress, uint256 amount) external onlyOwner`

Function to set an allowance for the notary. Invoked only by the contract owner. Allowance can be set to 0. To set an allowance bigger than 0, allowance before must equal 0.
Expand Down
18 changes: 18 additions & 0 deletions abis/Allocator.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "decreaseAllowance",
"inputs": [
{
"name": "allocator",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getAllocators",
Expand Down
Loading