# Architecture

### Smart Contracts Framework

{% stepper %}
{% step %}
**Vault Contract**

* User deposit/withdrawal interface
* Share token management
  {% endstep %}

{% step %}
**Strategy Contract**

* Core looping logic
* Position management
* Rebalancing automation
* Swap optimization
* Slippage protection
  {% endstep %}
  {% endstepper %}

### **Base Layer**

&#x20;Yearn V3 vault & strategy infrastructure:

* Battle-tested architecture
* Proven security model
* Extensive audit history
