0.1.0-rc.0 • Published 1 year ago

@optyfi/defi-legos v0.1.0-rc.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

defi-legos

Collection of ABIs, Addresses and Solidity Interfaces that is integrated with opty.fi's earn protocol

Overview

Installation

  • Using npm
$ npm install @optyfi/defi-legos
  • Using yarn
$ yarn add @optyfi/defi-legos

Usage

Once installed, you can use the legos in the library by importing them:

// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;

import "@optyfi/ethereum/curve/contracts/ICurveAddressProvider.sol";
import "@optyfi/ethereum/curve/contracts/CurveAddresses.sol";

contract CurveDepositAdapter {
    function getCurveRegistry() public view returns (address) {
        return ICurveAddressProvider(CurveAddresses.ADDRESS_PROVIDER).get_registry();
    }
}

Security

The library of defi legos is maintained by core developers and builder community of opty.fi. Opty.fi's defi legos are used in building defi adapters and subgraphs for the yield generating protocol of opty.fi called earn-protocol

The reason behind building defi legos' library is to achieve opty.fi's philosophy of simple, modular and seamless integration of defi protocols to its yield generating protocol.

Contribute

Opty.fi's defi legos is being developed - thanks to the open source smart contracts of various defi protocols and builder community. Check out the contribution guide in order to participate to this library!

Credits

Inspired by the incredible OpenZeppelin Contracts and money-legos

License

Opty.fi's defi-legos is released under the MIT License.

0.1.0-rc.49

1 year ago

0.1.0-rc.48

2 years ago

0.1.0-rc.42

2 years ago

0.1.0-rc.41

2 years ago

0.1.0-rc.46

2 years ago

0.1.0-rc.45

2 years ago

0.1.0-rc.44

2 years ago

0.1.0-rc.43

2 years ago

0.1.0-rc.47

2 years ago

0.1.0-rc.39

2 years ago

0.1.0-rc.40

2 years ago

0.1.0-rc.35

2 years ago

0.1.0-rc.34

2 years ago

0.1.0-rc.38

2 years ago

0.1.0-rc.37

2 years ago

0.1.0-rc.36

2 years ago

0.1.0-rc.33

2 years ago

0.1.0-rc.31

2 years ago

0.1.0-rc.30

2 years ago

0.1.0-rc.32

2 years ago

0.1.0-rc.17

2 years ago

0.1.0-rc.16

2 years ago

0.1.0-rc.19

2 years ago

0.1.0-rc.18

2 years ago

0.1.0-rc.20

2 years ago

0.1.0-rc.24

2 years ago

0.1.0-rc.23

2 years ago

0.1.0-rc.22

2 years ago

0.1.0-rc.21

2 years ago

0.1.0-rc.28

2 years ago

0.1.0-rc.27

2 years ago

0.1.0-rc.26

2 years ago

0.1.0-rc.29

2 years ago

0.1.0-rc.9

2 years ago

0.1.0-rc.8

2 years ago

0.1.0-rc.5

2 years ago

0.1.0-rc.6

2 years ago

0.1.0-rc.3

2 years ago

0.1.0-rc.4

2 years ago

0.1.0-rc.1

2 years ago

0.1.0-rc.2

2 years ago

0.1.0-rc.13

2 years ago

0.1.0-rc.12

2 years ago

0.1.0-rc.11

2 years ago

0.1.0-rc.10

2 years ago

0.1.0-rc.15

2 years ago

0.1.0-rc.14

2 years ago

0.1.0-rc.0

3 years ago