deBridge 백서

deBridge

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 31쪽 중 25쪽

des"> Using referral codes for tracking and features </Card> <Card title="Auto-Cancellation" href="/dln-details/affiliates/auto-cancellations"> Automatic order cancellation for improved UX </Card> </CardGroup> # Custom Linking Source: https://docs.debridge.com/home/monetization/custom-linking Create shareable swap links with your referral code—no coding required Create custom deBridge links with pre-filled parameters and your referral code. Share them anywhere—social media, blog posts, Discord—and earn from every swap. ## What You Can Do * Create links with pre-selected chains and tokens * Embed your referral code to earn [deBridge Points](/home/monetization/debridge-points) * No coding or technical setup required <Note> Your referral code only applies to **new users** who have never visited deBridge before and haven't made any transactions through the protocol. Existing users won't be counted as your referrals. </Note> ## Step-by-Step Guide <Steps> <Step title="Generate Your Referral Code"> Go to [app.debridge.com/refer](https://app.debridge.com/refer) 1. Connect your wallet 2. Select **Polygon** (cheapest option, works for all chains) 3. Click **Generate** 4. Save your referral code (e.g., `7895`) </Step> <Step title="Create Your Custom Link"> Start with the base URL and add your referral code: ``` https://app.debridge.com/?r=YOUR_CODE ``` Example with referral code `4850`: ``` https://app.debridge.com/?r=4850 ``` </Step> <Step title="Add Optional Parameters"> Customize the link further by pre-selecting chains and tokens. Example: USDC on BSC → USDT on Ethereum with referral code: ``` https://app.debridge.com/?inputChain=56&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d&outputChain=1&outputCurrency=0xdac17f958d2ee523a2206206994597c13d831ec7&r=4850 ``` </Step> <Step title="Share Your Link"> Post your custom link on Twitter, Discord, Telegram, or your website. New users who swap through your link will contribute to your points. </Step> </Steps> ## URL Parameters | Parameter | Description | Example | | ---------------- | ------------------------- | ---------------------- | | `r` | Your referral code | `r=7895` | | `inputChain` | Source chain ID | `inputChain=1` | | `inputCurrency` | Source token address | `inputCurrency=0x...` | | `outputChain` | Destination chain ID | `outputChain=137` | | `outputCurrency` | Destination token address | `outputCurrency=0x...` | | `amount` | Pre-filled amount | `amount=100` | | `address` | Pre-filled recipient | `address=0x...` | ## Common Chain IDs | Chain | ID | | --------------- | ------- | | Ethereum | `1` | | BNB Smart Chain | `56` | | Polygon | `137` | | Arbitrum | `42161` | | Avalanche | `43114` | | Fantom | `250` | | Optimism | `10` | | Base | `8453` | <Tip>Find all chain IDs in the [supported chains section](/home/architecture/supported-chains).</Tip> ## Example Links ### Basic Link with Referral Code ``` https://app.debridge.com/?r=7895 ``` ### ETH to Polygon USDC ``` https://app.debridge.com/?inputChain=1&outputChain=137&outputCurrency=0x3c499c542cef5e3811e1192ce70d8cc03d5c3359&r=7895 ``` ### BSC USDC to Ethereum USDT ``` https://app.debridge.com/?inputChain=56&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d&outputChain=1&outputCurrency=0xdac17f958d2ee523a2206206994597c13d831ec7&r=7895 ``` ## Track Your Points Monitor your referral activity and accumulated points: 1. Go to [app.debridge.com/statistic](https://app.debridge.com/statistic) 2. Connect the wallet you used to generate your referral code 3. View your points accumulated and referred users ## Best Practices <CardGroup> <Card title="Use Short Links">Use a URL shortener for cleaner sharing on social media</Card> <Card title="Match Your Audience">Pre-fill chains and tokens relevant to your community</Card> <Card title="Track Campaigns">Use different referral codes for different campaigns to measure performance</Card> <Card title="Be Transparent">Disclose that you earn from referrals—it builds trust</Card> </CardGroup> ## Next Steps * [Learn about deBridge Points](/home/monetization/debridge-points) and how they convert to DBR tokens * [Build an integration](/home/monetization/affiliate-fees) to earn affiliate fees directly * See the full [URL parameter reference](/dln-details/widget/app) for advanced options # deBridge Points Source: https://docs.debridge.com/home/monetization/debridge-points Earn points for contributing to the deBridge ecosystem The deBridge Points program rewards users, integrators, and referrers for contributing to the ecosystem. Points are earned based on protocol fees and can translate to future governance participation. ## How Points Work For every 1\$ in protocol fees paid, users earn 100 deBridge Points. **Referrers and integrators earn 25%** of the points generated by users they refer. ## Points to DBR Conversion At the end of each season, accumulated points are converted into [DBR tokens](https://solscan.io/token/DBRiDgJAMsM95moTzJs7M9LnkGErpbv9v6CUR1DXnUu5). The conversion rate is announced when each season concludes. <Note> To stay informed about season endings and DBR distributions, follow deBridge on [X (Twitter)](https://x.com/debridge) and join our [Discord](https://discord.gg/debridge). </Note> ## For Integrators Integrating deBridge into your product? Your integration automatically earns 25% of all points generated by your users. ### Integration Methods Choose how to integrate: <CardGroup> <Card title="API" href="/dln-details/integration-guidelines/order-creation/creating-order/quick-start"> Full control and customization </Card> <Card title="Widget" href="/dln-details/widget/deBridge-widget"> Drop-in UI component </Card> <Card title="Messaging" href="/dmp-details/dmp/protocol-overview"> Custom cross-chain calls </Card> </CardGroup> ### Setting Up Your Referral Code To ensure your integration activity is tracked, you'll need a referral code. Beyond points tracking, referral codes enable analytics, order tracking, and features like auto-cancellation. See the [Referral Codes guide](/home/monetization/referral-codes) for full details. <Steps> <Step title="Generate Code"> Go to [app.debridge.com/refer](https://app.debridge.com/refer) and generate a referral code. Select Polygon for the cheapest option—it covers all chains. </Step> <Step title="Add to Integration"> Pass the `referralCode` parameter to all DLN API queries. Set the parameters up correctly for your integration path: * **API**: Include `referralCode` in your [`create-tx` requests](/dln-details/integration-guidelines/order-creation/creating-order/api-parameters/api-parameters#referral-code) * **Widget**: Set the `r` parameter in your [widget configuration](/dln-details/widget/deBridge-widget) </Step> <Step title="Verify Tracking"> Check your stats at [app.debridge.com/statistic](https://app.debridge.com/statistic) to confirm orders are being tracked. </Step> </Steps> <Tip> Share your referral code with the deBridge team for expedited support and feature access like [auto-cancellation](/dln-details/affiliates/auto-cancellations). </Tip> ## For Individual Referrers Share deBridge with your network and earn 25% of points from new users who swap through your link. ### Getting Your Referral Link <Steps> <Step title="Generate Code"> Visit [app.debridge.com/refer](https://app.debridge.com/refer), connect your wallet, and generate a code. </Step> <Step title="Create Your Link">Your referral link format: `https://app.debridge.com/deswap?r=YOUR_CODE`</Step> <Step title="Share">Post on Twitter, Discord, Telegram—anywhere your network is active.</Step> </Steps> <Warning>Self-referrals (referring yourself) are not counted to prevent gaming the system.</Warning> ### Who Counts as a Referral? A "new user" is someone who: * Has never visited deBridge before * Has never made any transactions through deBridge * Visits deBridge for the first time through your referral link You earn 25% of their points for all future activity. ## Check Your Points View your accumulated points and referral statistics: 1. Go to [explorer.debridge.com/statistic](https://explorer.debridge.com/statistic) 2. Connect the wallet you used to generate your referral code 3. See your total points and referred users ## FAQ <AccordionGroup> <Accordion title="How do I check my points?"> Connect your wallet at [explorer.debridge.com/statistic](https://explorer.debridge.com/statistic). </Accordion> <Accordion title="I forgot to add my referral code. Can I recover lost points?"> No—points can only be tracked with a referral code attached. Add your code to all future transactions to start earning. </Accordion> <Accordion title="What will points be used for?"> Points are converted to [DBR tokens](https://solscan.io/token/DBRiDgJAMsM95moTzJs7M9LnkGErpbv9v6CUR1DXnUu5) at the end of each season. Follow [@debridge on X](https://x.com/debridge) or join our [Discord](https://discord.gg/debridge) for season announcements. </Accordion> <Accordion title="When does the current season end?"> Season end dates are announced on our socials. Follow [@debridge on X](https://x.com/debridge) or join our [Discord](https://discord.gg/debridge) to stay informed. </Accordion> <Accordion title="Can I earn both points AND affiliate fees?"> Yes! Points and [affiliate fees](/home/monetization/affiliate-fees) are separate. You can earn both by including your referral code and affiliate fee parameters. </Accordion> </AccordionGroup> ## Next Steps <CardGroup> <Card title="Set Up Affiliate Fees" href="/home/monetization/affiliate-fees"> Add direct revenue to your integration </Card> <Card title="Create Custom Links" href="/home/monetization/custom-linking"> Share pre-configured swap links </Card> </CardGroup> # Referral Codes Source: https://docs.debridge.com/home/monetization/referral-codes Track orders, unlock features, and enable auto-cancellation with referral codes A referral code is your unique identifier when integrating with deBridge. Beyond tracking points and affiliate fees, it enables analytics, feature toggles, and improved user experience. ### DLN Referral Codes For [deBridge Liquidity Network (DLN)](/home/products/dln-overview) integrations, referral codes are generated on-chain and enable additional features like auto-cancellation. ## What Referral Codes Enable | Capability | Description | | ------------------- | -------------------------------------------------------------------------------------------------------- | | **Order Tracking** | See all orders created through your integration | | **Analytics** | Monitor volume, fees, and user activity | | **Feature Toggles** | Enable DLN features like [auto-cancellation](/dln-details/affiliates/auto-cancellations) per integration | | **Custom Support** | Faster debugging with order attribution | ## Getting a Referral Code <Steps> <Step title="Visit the Referral Page">Go to [app.debridge.com/refer](https://app.debridge.com/refer)</Step> <Step title="Connect Your Wallet">Connect the wallet you want associated with your code</Step> <Step title="Select Network"> Choose **Polygon** for the cheapest generation fee. The code works across all supported chains including Solana. </Step> <Step title="Generate">Click generate and save your code (e.g., `7895`)</Step> </Steps> ## Using Your Code ### API Integration Include `referralCode` in your [`create-tx` requests](/dln-details/integration-guidelines/order-creation/creating-order/api-parameters/api-parameters#referral-code). More details are available in the API documentation. ### Widget Integration Set the `r` parameter in your [widget configuration](/dln-details/widget/deBridge-widget). ## Tracking Orders Query all orders associated with your referral code using the tracking API: See the full [order tracking documentation](/dln-details/integration-guidelines/order-creation/order-tracking-api/tracking-orders#by-referralcode) for available filters and response fields. ### Code Example A complete working example is available on GitHub: [get-orders-by-referral-code.ts](https://github.com/debridge-finance/api-integrator-example/blob/master/src/scripts/orders/queries/get-orders-by-referral-code.ts) ## Auto-Cancellation Feature For DLN integrations, referral codes unlock **[auto-cancellation](/dln-details/affiliates/auto-cancellations)**—automatic cancellation of unfulfilled orders after a timeout, improving user experience. ### How It Works * **Unprofitable orders**: Cancelled after 5 minutes * **Other issues**: Cancelled after 15 minutes * **Cost**: Subsidized by deBridge * **Result**: Users don't need to manually cancel failed orders ### Enabling Auto-Cancellation This feature requires approval from deBridge: 1. Contact deBridge to request the feature 2. Configure required parameters (`srcAllowedCancelBeneficiary`) 3. deBridge reviews your integration 4. Feature is enabled for your referral code <Warning> When auto-cancellation is enabled, the `dstChainOrderAuthorityAddress` is overridden to a deBridge-controlled address. Ensure `srcAllowedCancelBeneficiary` is set to the user's wallet to receive refunds. </Warning> See the full [auto-cancellation documentation](/dln-details/affiliates/auto-cancellations) for technical details. ## Technical References <CardGroup> <Card title="API Parameters" href="/dln-details/integration-guidelines/order-creation/creating-order/api-parameters/api-parameters#referral-code"> Full referralCode parameter specification </Card> <Card title="Order Tracking" href="/dln-details/integration-guidelines/order-creation/order-tracking-api/tracking-orders"> Query orders by referral code </Card> <Card title="Auto-Cancellation" href="/dln-details/affiliates/auto-cancellations"> Automatic order cancellation setup </Card> <Card title="Widget Reference" href="/dln-details/widget/deBridge-widget"> Widget configuration options </Card> </CardGroup> # dePort Source: https://docs.debridge.com/home/products/deport-overview Deploy your token on secondary chains using dePort's lock-and-mint solution dePort is a native bridge for assets that allows protocols to deploy synthetic representations (deTokens) of their tokens across multiple chains using a lock-and-mint model. Built on the [deBridge Messaging Protocol (DMP)](/home/products/dmp-overview), dePort locks native tokens in a deBridgeGate smart contract on the source chain and mints corresponding synthetic assets (deAssets) on destination chains. dePort can also serve as a canonical bridge for chains connected via [deBridge IaaS](/home/products/iaas), providing cross-chain asset custody. ## Key Features * **Lock-and-mint architecture**: Native tokens are locked on the source chain, synthetic deAssets are minted on destination chains * **1:1 collateralization**: Total supply of each deAsset is always fully backed by collateral locked on the native chain — no liquidity imbalance risk * **Automatic listing**: No listing requirements — any token can be bridged, and the deAsset is deployed automatically on first claim * **Multi-chain routing**: Transfer deAssets between secondary chains directly, without routing through the native chain * **Decentralized validation**: Validator consensus ensures cross-chain transfer integrity * **Canonical bridge for IaaS chains**: Provides cross-chain asset custody for chains connected via deBridge Infrastructure-as-a-Service ## When to Use dePort * **Token issuers** wanting multi-chain presence for their assets * **Protocols** deploying synthetic representations across chains * **Projects** needing 1:1 backed wrapped tokens with guaranteed collateralization * **Multi-chain token distribution** without liquidity fragmentation * **Canonical bridging** for chains connected via [IaaS](/home/products/iaas) — seamless custody of assets from other networks ## How It Works 1. **Lock**: The native token is locked in the `deBridgeGate` smart contract on the source chain. A unique `submissionId` is calculated from the transaction parameters. 2. **Validate**: deBridge validators track the event, wait for block finality, then sign the `submissionId` and submit it to the destination chain. 3. **Mint**: Once sufficient validator signatures are collected, the corresponding deAsset is minted on the destination chain. If the token is bridged for the first time, the deAsset contract is deployed automatically. 4. **Claim**: Any wallet can call the `claim` method with the transaction parameters and validator signatures. The smart contract reconstructs the `submissionId`, verifies signatures, and mints/unlocks the asset to the receiver. ## Architecture ```mermaid theme={null} graph LR A[User] -->|Lock token| B[deBridgeGate<br/>Source Chain] B -->|Emit event| C[Validators] C -->|Sign submissionId| D[deBridgeGate<br/>Destination Chain] D -->|Mint deAsset| E[Receiver] E -.->|Transfer deAsset| F[Other Chains] ``` ## Documentation <Columns> <Card title="Getting Started" icon="rocket" href="/dmp-details/dePort/getting-started"> Core concepts, collateralization, and listing </Card> <Card title="Transfer Flow" icon="diagram-project" href="/dmp-details/dePort/transfer-flow"> Technical transfer mechanics and validation </Card> </Columns> ## Get Started [Go to dePort Documentation](/dmp-details/dePort/getting-started) # deBridge Liquidity Network Source: https://docs.debridge.com/home/products/dln-overview Foundational cross-chain trading infrastructure The deBridge Liquidity Network (DLN) is the foundational trading infrastructure powering deBridge. It provides fast, capital-efficient **cross-chain and same-chain swaps** with guaranteed rates and no slippage. ## Key Features * **Cross-chain and same-chain swaps**: One API for both — no separate integrations needed * **Near-instant settlement**: Trades complete in seconds, not minutes * **0-TVL architecture**: No liquidity pools to hack * **Guaranteed rates**: The quoted rate is the rate you get * **Zero slippage**: No MEV, no front-running * **Native tokens**: Receive real assets, not wrapped versions * **Hooks support**: Execute contract calls with trades (PostHooks) ## Same-Chain Swaps DLN isn't just for cross-chain — it also powers **same-chain token swaps** on both EVM chains and Solana through the same API. The DLN API routes through multiple DeFi aggregators, simulates execution, and returns ready-to-sign transactions — so your integration stays simple while users get competitive rates. Key capabilities: * **Adaptive slippage**: Instead of a static slippage value, DLN dynamically calculates a minimum reasonable bound based on real-time conditions and route simulation — protecting users in volatile markets * **Aggregator comparison**: The API queries multiple aggregators and returns the comparison in the response, giving integrators full transparency into the routing decision * **Execution-ready transactions**: The `/v1.0/chain/transaction` endpoint returns a fully constructed transaction (targeting `DeBridgeRouter` on EVM, or a serialized `VersionedTransaction` on Solana) — no manual route building required * **Built-in monetization**: [Affiliate fees](/dln-details/affiliates/affiliate-fees#same-chain-affiliate-fees) work identically to cross-chain swaps — just include `affiliateFeePercent` and `affiliateFeeRecipient` in your requests The integration flow is intentionally compact: call `/v1.0/chain/estimation` for a quote (just for quotes – user's address is unknown), then `/v1.0/chain/transaction` once the sender is known. Sign and submit within \~30 seconds for best execution. <CardGroup> <Card title="Same-Chain Swaps Overview" icon="arrows-repeat" href="/dln-details/integration-guidelines/same-chain-swaps/executive"> High-level overview of how same-chain swaps work </Card> <Card title="Engineering Guide" ico
프로젝트로 돌아가기