apendix2
This commit is contained in:
@@ -33,12 +33,10 @@ contract CurveUnderlyingAdapter is IDODOAdapter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//fromToken == token[0], underlying
|
|
||||||
function sellBase(address to, address pool, bytes memory moreInfo) external override {
|
function sellBase(address to, address pool, bytes memory moreInfo) external override {
|
||||||
_curveSwap(to, pool, moreInfo);
|
_curveSwap(to, pool, moreInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
//fromToken == token[1], underlying
|
|
||||||
function sellQuote(address to, address pool, bytes memory moreInfo) external override {
|
function sellQuote(address to, address pool, bytes memory moreInfo) external override {
|
||||||
_curveSwap(to, pool, moreInfo);
|
_curveSwap(to, pool, moreInfo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright 2020 DODO ZOO.
|
Copyright 2020 DODO ZOO.
|
||||||
SPDX-License-Identifier: Apache-2.0
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pragma solidity 0.6.9;
|
pragma solidity 0.6.9;
|
||||||
|
|||||||
Reference in New Issue
Block a user