Skip to content
Merged
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
4 changes: 4 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@
* [XVSBridgeAdmin](technical-reference/reference-xvs-bridge/XVSBridgeAdmin.md)
* [XVS](technical-reference/reference-xvs-bridge/XVS.md)
* [TokenController](technical-reference/reference-xvs-bridge/TokenController.md)
* [Periphery](technical-reference/reference-periphery/README.md)
* [LeverageStrategiesManager](technical-reference/reference-periphery/leverage-strategies-manager.md)
* [SwapHelper](technical-reference/reference-periphery/swap-helper.md)

## Deployed Contracts

Expand All @@ -197,6 +200,7 @@
* [XVS Omnichain](deployed-contracts/xvs-omnichain.md)
* [Token Converters](deployed-contracts/token-converters.md)
* [VenusERC4626](deployed-contracts/venus-erc4626.md)
* [Periphery](deployed-contracts/periphery.md)

## Services

Expand Down
6 changes: 6 additions & 0 deletions deployed-contracts/periphery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Periphery - Deployed Contracts

## BNB Chain Mainnet

- SwapHelper: [`0xD79be25aEe798Aa34A9Ba1230003d7499be29A24`](https://bscscan.com/address/0xD79be25aEe798Aa34A9Ba1230003d7499be29A24)
- LeverageStrategiesManager: [`0x03F079E809185a669Ca188676D0ADb09cbAd6dC1`](https://bscscan.com/address/0x03F079E809185a669Ca188676D0ADb09cbAd6dC1)
13 changes: 13 additions & 0 deletions technical-reference/contracts-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Venus Protocol contracts are divided in these repositories:
* [venus-protocol](https://github.com/VenusProtocol/venus-protocol): The core protocol is located in this repo. It contains logic central to lending and borrowing of the core pool.
* [governance-contracts](https://github.com/VenusProtocol/governance-contracts): The contracts used for proposing, voting and executing changes are kept in the \`governance-contracts repo.
* [token-bridge](https://github.com/VenusProtocol/token-bridge): The contracts use to bridge XVS to different networks.
* [venus-periphery](https://github.com/VenusProtocol/venus-periphery): Auxiliary contracts for advanced DeFi operations including leverage strategies and token swaps.

## Isolated Pools Contracts

Expand Down Expand Up @@ -177,3 +178,15 @@ The core logic for governance proposals is in the [GovernorBraveDelegate](https:
To enhance security of the protocol, Venus Protocol uses the [AccessControlManager](https://github.com/VenusProtocol/governance-contracts/blob/main/contracts/Governance/AccessControlManager.sol) to grant accounts access to call specific functions on contracts. This contract is responsible for granting and revoking those permissions. It also provides a getter to check if an address is allowed to call a specific function.

**Timelock** Once a proposal has succeeded its execution is managed by the [Timelock](https://github.com/VenusProtocol/governance-contracts/blob/main/contracts/Governance/Timelock.sol) contract. The Timelock can place the proposal in a queue for execution and execute the proposal. It also enables canceling the proposal.

## Periphery Contracts

Periphery contracts extend core protocol functionality with auxiliary features for advanced DeFi operations.

[**LeverageStrategiesManager**](reference-periphery/leverage-strategies-manager.md)

The [LeverageStrategiesManager](https://github.com/VenusProtocol/venus-periphery/blob/main/contracts/LeverageManager/LeverageStrategiesManager.sol) enables users to enter and exit leveraged positions atomically using flash loans. It consolidates multiple operations (borrow, swap, supply) into single transactions.

[**SwapHelper**](reference-periphery/swap-helper.md)

The [SwapHelper](https://github.com/VenusProtocol/venus-periphery/blob/main/contracts/SwapHelper/SwapHelper.sol) provides a secure multicall interface for token swaps with backend signature verification. It enables authorized interactions with external DEX protocols.
22 changes: 22 additions & 0 deletions technical-reference/reference-periphery/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Periphery Contracts

Venus Protocol periphery contracts extend core protocol functionality with auxiliary features for advanced DeFi operations. These contracts integrate with the Venus Comptroller and vToken markets to provide atomic, gas-efficient operations.

## Overview

The Venus periphery consists of specialized smart contracts designed to streamline complex DeFi operations:

- **[LeverageStrategiesManager](leverage-strategies-manager.md)** - Enter and exit leveraged positions atomically using flash loans
- **[SwapHelper](swap-helper.md)** - Execute backend-authorized token swaps with signature verification

## Key Features

- Flash loan-based atomic execution
- EIP-712 signature verification for authorized operations
- EIP-1153 transient storage for efficient callback state management
- Comprehensive account safety validation
- Slippage protection on all swap operations

## Deployment

Periphery contracts are currently deployed on BNB Chain Mainnet. See [Deployed Contracts](../../deployed-contracts/periphery.md) for addresses and deployment information.
Loading