Skip to content

Commit

Permalink
GITBOOK-386: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Listvan authored and gitbook-bot committed Jan 30, 2025
1 parent b2d746c commit 296b206
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions docs/dln-the-debridge-liquidity-network-protocol/debridge-widget.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,43 +275,32 @@ The widget object provides several methods to programmatically interact with it.
widget.setExternalSolanaWallet({
provider: window.solana,
name: "Phantom",
imageSrc: 'https://app.debridge.finance/assets/images/wallet/metamask.svg'
imageSrc: 'https://app.debridge.finance/assets/images/wallet/phenom.svg'
});
```
8. **`setExternalSolanaWallet(walletConfig)`**
* Connects an external Solana-compatible wallet.
8. **`setReceiverAddress(address)`**
* Sets the receiver's wallet address.
* Example usage:
```javascript
widget.setExternalSolanaWallet({
provider: window.solana,
name: "Phantom",
imageSrc: 'https://app.debridge.finance/assets/images/wallet/metamask.svg'
});
widget.setReceiverAddress('0x...');
```
9. **`setReceiverAddress(address)`**
* Sets the receiver's wallet address.
9. **`setAffiliateFee(feeConfig)`**
* Sets the affiliate fee for Solana and EVM networks.
* Example usage:
```javascript
widget.setReceiverAddress('0x...');
widget.setAffiliateFee({
solana: {
affiliateFeePercent: '0.5',
affiliateFeeRecipient: 'B5...',
},
evm: {
affiliateFeePercent: '1',
affiliateFeeRecipient: '0x...',
}
});
```
10. **`setAffiliateFee(feeConfig)`**
* Sets the affiliate fee for Solana and EVM networks.
* Example usage:
```javascript
widget.setAffiliateFee({
solana: {
affiliateFeePercent: '0.5',
affiliateFeeRecipient: 'B5...',
},
evm: {
affiliateFeePercent: '1',
affiliateFeeRecipient: '0x...',
}
});
```
### deBridge Widget builder 
Expand Down

0 comments on commit 296b206

Please sign in to comment.