@@ -5,6 +5,17 @@ import { Adapter } from "./Adapter.sol";
55import { Component } from "../Structs.sol " ;
66
77
8+ /**
9+ * @dev Proxy contract interface.
10+ * Only the functions required for SynthetixAdapter contract are added.
11+ * The Proxy contract is available here
12+ * https://github.com/Synthetixio/synthetix/blob/master/contracts/Proxy.sol.
13+ */
14+ interface Proxy {
15+ function target () external view returns (address );
16+ }
17+
18+
819/**
920 * @dev Synthetix contract interface.
1021 * Only the functions required for SynthetixAdapter contract are added.
@@ -25,8 +36,8 @@ interface Synthetix {
2536 */
2637contract SynthetixAdapter is Adapter {
2738
28- address internal constant SNX = 0x153C3148A0a285A6f9F6d1996E1348832249bF7e ;
29- address internal constant SUSD = 0x2A020C1ad728f1C12735bC4877CEECa4491A4a3D ;
39+ address internal constant SNX = 0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F ;
40+ address internal constant SUSD = 0x57Ab1ec28D129707052df4dF418D58a2D46d5f51 ;
3041
3142 /**
3243 * @return Name of the protocol.
@@ -41,7 +52,7 @@ contract SynthetixAdapter is Adapter {
4152 * @dev Implementation of Adapter function.
4253 */
4354 function getAssetAmount (address asset , address user ) external view override returns (int256 ) {
44- Synthetix synthetix = Synthetix (SNX);
55+ Synthetix synthetix = Synthetix (Proxy ( SNX). target () );
4556 if (asset == SNX) {
4657 return int256 (synthetix.balanceOf (user) - synthetix.transferableSynthetix (user));
4758 } else if (asset == SUSD) {
0 commit comments