Skip to content
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
32 changes: 32 additions & 0 deletions docs/staking/contract-integration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Contract Integration Notes

## 1. Contract

- **Address**: `0x04c74e8a11c669acfb7ee01012bbf5cf1e57a10d`

---

## 2. Function:

### 2.1 `claimedAmount`

Query how much reward has already been claimed by a specific owner.

**Conceptual signature:**

```ts
import {keccak256, toUtf8Bytes} from 'ethers';

// User wallet address (example)
const ADDRESS = '0x3a951869775c5d6c2d295e74b79406836da3d956';

// 1) Protocol type identifier
const protocolTypeIdentifier = keccak256(toUtf8Bytes('symbiotic'));

// 2) Digest used in contract call
const ownerAddressDigest = keccak256(
toUtf8Bytes(protocolTypeIdentifier + ADDRESS.toLowerCase()),
);

// rewardsContract.claimedAmount(ownerAddressDigest);
```
Loading