Skip to content

Commit 8b4e378

Browse files
committed
docs: update with new fee model
1 parent eab0a80 commit 8b4e378

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

docs/integration.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,22 @@ This section describes how to create a valid IBC payload in Golang:
7171
3. Define the action and set the attributes:
7272

7373
```go
74-
action, err := actiontypes.NewFeeAction(
75-
&actiontypes.FeeInfo{
76-
Recipient: feeRecipientAddr,
77-
BasisPoints: basisPoints,
78-
},
79-
)
74+
feeBps, err := actiontypes.NewFeeBasisPoints(100) // 1%
75+
require.NoError(t, err)
76+
77+
feeAmount, err := actiontypes.NewFeeAmount("100")
78+
require.NoError(t, err)
79+
80+
action, err := actiontypes.NewFeeAction(
81+
&actiontypes.FeeInfo{
82+
Recipient: feeRecipientAddr1,
83+
FeeType: feeBps,
84+
},
85+
&actiontypes.FeeInfo{
86+
Recipient: feeRecipientAddr1,
87+
FeeType: feeAmount,
88+
},
89+
)
8090
```
8191

8292
4. Create a wrapped payload:

0 commit comments

Comments
 (0)