About this contract source
nami-affiliate is a CosmWasm contract designed to facilitate affiliate fee distribution for transactions. It supports executing messages to a target contract while optionally deducting affiliate fees from the input funds. The contract ensures fees are calculated based on a basis points (bps) system and sent to an affiliate address, with the remaining funds forwarded to the target contract. It also includes a callback mechanism to return residual balances to the sender.
Identity
- On-chain code ID
- #20
- Version
- v1.0.0
- Origin source
- https://github.com/NAMIProtocol/nami-contracts/tree/3efb8706f2438323d5dbae29c337a11a6509de30/contracts/nami-affiliate
- Creator
- thor1zjwanvezcjp6hefgt6vqfnrrdm8yj9za3s8ss0
- Contract Binary Checksum (SHA-256)
- 223EA20A4463696FE32B23F845E9F90AE5C83EF0175894A4B0CEC114B7DD4B26
Hydration
Fresh
- Last sync
- 10 minutes ago
- Last sync attempt
- 10 minutes ago
- Seen on-chain
- 10 minutes ago
1 instantiated contract
| Name | Address | Last sync |
|---|---|---|
| nami:affiliate | thor1v3f7h384r8hw6r3dtcgfq6d5fq842u6cjzeuu8nr0cp93j7zfxyquyrfl8 | Fresh |
Verify the contract
curl -s https://gateway.liquify.com/chain/thorchain_api//cosmwasm/wasm/v1/code/20 | jq -r '.data' | base64 -d > app_layer_wasm_binary_code_20.bin
sha256sum app_layer_wasm_binary_code_20.bin
curl -s https://gateway.liquify.com/chain/thorchain_api//cosmwasm/wasm/v1/code/20 | jq -r '.code_info.data_hash'