{"size": 42365, "ext": "js", "max_stars_repo_path": "site-build/switchdex/build/static/js/39.91f3cb3e.chunk.js", "max_stars_repo_name": "BTCDIRECT/Defidex", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "site-build/switchdex/build/static/js/39.91f3cb3e.chunk.js", "max_issues_repo_name": "BTCDIRECT/Defidex", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "site-build/switchdex/build/static/js/39.91f3cb3e.chunk.js", "max_forks_repo_name": "BTCDIRECT/Defidex", "max_forks_repo_forks_event_min_datetime": "2021-07-04T08:14:11.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-27T16:30:19.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 42365.0, "max_line_length": 42365, "alphanum_fraction": 0.7450489791}
(this.webpackJsonpswitchdex=this.webpackJsonpswitchdex||[]).push([[39],{2072:function(e,t,a){"use strict";a.r(t),a.d(t,"AtokenEvents",(function(){return n})),a.d(t,"AtokenContract",(function(){return g}));var n,s=a(52),r=a(0),c=a.n(r),i=a(5),o=a(29),u=a(73),d=a(61),l=a(141),p=a(60),y=a(72),h=a(41),m=a(25),f=a(9),A=a(24),b=a(22),v=a(23);!function(e){e.Approval="Approval",e.BalanceTransfer="BalanceTransfer",e.BurnOnLiquidation="BurnOnLiquidation",e.InterestRedirectionAllowanceChanged="InterestRedirectionAllowanceChanged",e.InterestStreamRedirected="InterestStreamRedirected",e.MintOnDeposit="MintOnDeposit",e.Redeem="Redeem",e.RedirectedBalanceUpdated="RedirectedBalanceUpdated",e.Transfer="Transfer"}(n||(n={}));var g=function(e){function t(e,a,n,s){var r,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.deployedBytecode;return Object(o.a)(this,t),(r=Object(u.a)(this,Object(d.a)(t).call(this,"Atoken",t.ABI(),e,a,n,s,c)))._methodABIIndex={},r._subscriptionManager=void 0,f.classUtils.bindAll(Object(l.a)(r),["_abiEncoderByFunctionSignature","address","_web3Wrapper"]),r._subscriptionManager=new h.SubscriptionManager(t.ABI(),r._web3Wrapper),t.ABI().forEach((function(e,t){if("function"===e.type){var a=e;r._methodABIIndex[a.name]=t}})),r}return Object(y.a)(t,e),Object(p.a)(t,[{key:"getFunctionSignature",value:function(e){var a=this._methodABIIndex[e],n=t.ABI()[a];return Object(h.methodAbiToFunctionSignature)(n)}},{key:"getABIDecodedTransactionData",value:function(e,t){var a=this.getFunctionSignature(e);return this._lookupAbiEncoder(a).strictDecode(t)}},{key:"getABIDecodedReturnData",value:function(e,t){var a=this.getFunctionSignature(e);return this._lookupAbiEncoder(a).strictDecodeReturnValue(t)}},{key:"getSelector",value:function(e){var t=this.getFunctionSignature(e);return this._lookupAbiEncoder(t).getSelector()}},{key:"UINT_MAX_VALUE",value:function(){var e=this;return{callAsync:function(){var t,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(t,a),o.next=5,c.a.awrap(e._performCallAsync(Object(i.a)({},t,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=e._lookupAbiEncoder("UINT_MAX_VALUE()"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return e._strictEncodeArguments("UINT_MAX_VALUE()",[])}}}},{key:"allowance",value:function(e,t){var a=this;b.assert.isString("owner",e),b.assert.isString("spender",t);return{callAsync:function(){var e,t,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,t),o.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return n=o.sent,s=a._lookupAbiEncoder("allowance(address,address)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments("allowance(address,address)",[e.toLowerCase(),t.toLowerCase()])}}}},{key:"approve",value:function(e,t){var a=this;b.assert.isString("spender",e),b.assert.isBigNumber("value",t);return{sendTransactionAsync:function(e){var t,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",a._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return a._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=n.sent,n.abrupt("return",a._web3Wrapper.estimateGasAsync(t));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,t,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,t),o.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return n=o.sent,s=a._lookupAbiEncoder("approve(address,uint256)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments("approve(address,uint256)",[e.toLowerCase(),t])}}}},{key:"decimals",value:function(){var e=this;return{callAsync:function(){var t,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(t,a),o.next=5,c.a.awrap(e._performCallAsync(Object(i.a)({},t,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=e._lookupAbiEncoder("decimals()"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return e._strictEncodeArguments("decimals()",[])}}}},{key:"decreaseAllowance",value:function(e,t){var a=this;b.assert.isString("spender",e),b.assert.isBigNumber("subtractedValue",t);var n="decreaseAllowance(address,uint256)";return{sendTransactionAsync:function(e){var t,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",a._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return a._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=n.sent,n.abrupt("return",a._web3Wrapper.estimateGasAsync(t));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,t,s,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,t),u.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return s=u.sent,r=a._lookupAbiEncoder(n),u.abrupt("return",r.strictDecodeReturnValue(s));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments(n,[e.toLowerCase(),t])}}}},{key:"increaseAllowance",value:function(e,t){var a=this;b.assert.isString("spender",e),b.assert.isBigNumber("addedValue",t);var n="increaseAllowance(address,uint256)";return{sendTransactionAsync:function(e){var t,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",a._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return a._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=n.sent,n.abrupt("return",a._web3Wrapper.estimateGasAsync(t));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,t,s,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,t),u.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return s=u.sent,r=a._lookupAbiEncoder(n),u.abrupt("return",r.strictDecodeReturnValue(s));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments(n,[e.toLowerCase(),t])}}}},{key:"name",value:function(){var e=this;return{callAsync:function(){var t,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(t,a),o.next=5,c.a.awrap(e._performCallAsync(Object(i.a)({},t,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=e._lookupAbiEncoder("name()"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return e._strictEncodeArguments("name()",[])}}}},{key:"symbol",value:function(){var e=this;return{callAsync:function(){var t,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(t,a),o.next=5,c.a.awrap(e._performCallAsync(Object(i.a)({},t,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=e._lookupAbiEncoder("symbol()"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return e._strictEncodeArguments("symbol()",[])}}}},{key:"transfer",value:function(e,t){var a=this;b.assert.isString("recipient",e),b.assert.isBigNumber("amount",t);return{sendTransactionAsync:function(e){var t,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",a._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return a._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=n.sent,n.abrupt("return",a._web3Wrapper.estimateGasAsync(t));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,t,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,t),o.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return n=o.sent,s=a._lookupAbiEncoder("transfer(address,uint256)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments("transfer(address,uint256)",[e.toLowerCase(),t])}}}},{key:"transferFrom",value:function(e,t,a){var n=this;b.assert.isString("sender",e),b.assert.isString("recipient",t),b.assert.isBigNumber("amount",a);var s="transferFrom(address,address,uint256)";return{sendTransactionAsync:function(e){var t,a,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(n._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(a=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(a));case 7:return r.abrupt("return",n._web3Wrapper.sendTransactionAsync(a));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return n._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,c.a.awrap(n._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=a.sent,a.abrupt("return",n._web3Wrapper.estimateGasAsync(t));case 4:case"end":return a.stop()}}),null,this)},callAsync:function(){var e,t,a,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,t),u.next=5,c.a.awrap(n._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return a=u.sent,r=n._lookupAbiEncoder(s),u.abrupt("return",r.strictDecodeReturnValue(a));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return n._strictEncodeArguments(s,[e.toLowerCase(),t.toLowerCase(),a])}}}},{key:"underlyingAssetAddress",value:function(){var e=this;return{callAsync:function(){var t,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(t,a),o.next=5,c.a.awrap(e._performCallAsync(Object(i.a)({},t,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=e._lookupAbiEncoder("underlyingAssetAddress()"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return e._strictEncodeArguments("underlyingAssetAddress()",[])}}}},{key:"redirectInterestStream",value:function(e){var t=this;b.assert.isString("_to",e);return{sendTransactionAsync:function(e){var a,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(t._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===a.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",t._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return t._promiseWithTransactionHash(this.sendTransactionAsync(e,a),a)},estimateGasAsync:function(e){var a;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(t._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return a=n.sent,n.abrupt("return",t._web3Wrapper.estimateGasAsync(a));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,a),o.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=t._lookupAbiEncoder("redirectInterestStream(address)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments("redirectInterestStream(address)",[e.toLowerCase()])}}}},{key:"redirectInterestStreamOf",value:function(e,t){var a=this;b.assert.isString("_from",e),b.assert.isString("_to",t);var n="redirectInterestStreamOf(address,address)";return{sendTransactionAsync:function(e){var t,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",a._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return a._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=n.sent,n.abrupt("return",a._web3Wrapper.estimateGasAsync(t));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,t,s,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,t),u.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return s=u.sent,r=a._lookupAbiEncoder(n),u.abrupt("return",r.strictDecodeReturnValue(s));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments(n,[e.toLowerCase(),t.toLowerCase()])}}}},{key:"allowInterestRedirectionTo",value:function(e){var t=this;b.assert.isString("_to",e);var a="allowInterestRedirectionTo(address)";return{sendTransactionAsync:function(e){var a,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(t._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===a.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",t._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return t._promiseWithTransactionHash(this.sendTransactionAsync(e,a),a)},estimateGasAsync:function(e){var a;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(t._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return a=n.sent,n.abrupt("return",t._web3Wrapper.estimateGasAsync(a));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,n,s,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},n=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,n),u.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),n));case 5:return s=u.sent,r=t._lookupAbiEncoder(a),u.abrupt("return",r.strictDecodeReturnValue(s));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments(a,[e.toLowerCase()])}}}},{key:"redeem",value:function(e){var t=this;b.assert.isBigNumber("_amount",e);return{sendTransactionAsync:function(e){var a,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(t._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===a.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",t._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return t._promiseWithTransactionHash(this.sendTransactionAsync(e,a),a)},estimateGasAsync:function(e){var a;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(t._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return a=n.sent,n.abrupt("return",t._web3Wrapper.estimateGasAsync(a));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,a),o.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=t._lookupAbiEncoder("redeem(uint256)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments("redeem(uint256)",[e])}}}},{key:"mintOnDeposit",value:function(e,t){var a=this;b.assert.isString("_account",e),b.assert.isBigNumber("_amount",t);return{sendTransactionAsync:function(e){var t,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",a._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return a._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=n.sent,n.abrupt("return",a._web3Wrapper.estimateGasAsync(t));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,t,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,t),o.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return n=o.sent,s=a._lookupAbiEncoder("mintOnDeposit(address,uint256)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments("mintOnDeposit(address,uint256)",[e.toLowerCase(),t])}}}},{key:"burnOnLiquidation",value:function(e,t){var a=this;b.assert.isString("_account",e),b.assert.isBigNumber("_value",t);var n="burnOnLiquidation(address,uint256)";return{sendTransactionAsync:function(e){var t,n,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(n=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(n));case 7:return r.abrupt("return",a._web3Wrapper.sendTransactionAsync(n));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return a._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.a.awrap(a._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=n.sent,n.abrupt("return",a._web3Wrapper.estimateGasAsync(t));case 4:case"end":return n.stop()}}),null,this)},callAsync:function(){var e,t,s,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,t),u.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return s=u.sent,r=a._lookupAbiEncoder(n),u.abrupt("return",r.strictDecodeReturnValue(s));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments(n,[e.toLowerCase(),t])}}}},{key:"transferOnLiquidation",value:function(e,t,a){var n=this;b.assert.isString("_from",e),b.assert.isString("_to",t),b.assert.isBigNumber("_value",a);var s="transferOnLiquidation(address,address,uint256)";return{sendTransactionAsync:function(e){var t,a,s=arguments;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{shouldValidate:!0},r.next=3,c.a.awrap(n._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),this.estimateGasAsync.bind(this)));case 3:if(a=r.sent,!1===t.shouldValidate){r.next=7;break}return r.next=7,c.a.awrap(this.callAsync(a));case 7:return r.abrupt("return",n._web3Wrapper.sendTransactionAsync(a));case 8:case"end":return r.stop()}}),null,this)},awaitTransactionSuccessAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldValidate:!0};return n._promiseWithTransactionHash(this.sendTransactionAsync(e,t),t)},estimateGasAsync:function(e){var t;return c.a.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,c.a.awrap(n._applyDefaultsToTxDataAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()})));case 2:return t=a.sent,a.abrupt("return",n._web3Wrapper.estimateGasAsync(t));case 4:case"end":return a.stop()}}),null,this)},callAsync:function(){var e,t,a,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,t),u.next=5,c.a.awrap(n._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return a=u.sent,r=n._lookupAbiEncoder(s),u.abrupt("return",r.strictDecodeReturnValue(a));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return n._strictEncodeArguments(s,[e.toLowerCase(),t.toLowerCase(),a])}}}},{key:"balanceOf",value:function(e){var t=this;b.assert.isString("_user",e);return{callAsync:function(){var e,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,a),o.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=t._lookupAbiEncoder("balanceOf(address)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments("balanceOf(address)",[e.toLowerCase()])}}}},{key:"principalBalanceOf",value:function(e){var t=this;b.assert.isString("_user",e);return{callAsync:function(){var e,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,a),o.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=t._lookupAbiEncoder("principalBalanceOf(address)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments("principalBalanceOf(address)",[e.toLowerCase()])}}}},{key:"totalSupply",value:function(){var e=this;return{callAsync:function(){var t,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(t,a),o.next=5,c.a.awrap(e._performCallAsync(Object(i.a)({},t,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=e._lookupAbiEncoder("totalSupply()"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return e._strictEncodeArguments("totalSupply()",[])}}}},{key:"isTransferAllowed",value:function(e,t){var a=this;b.assert.isString("_user",e),b.assert.isBigNumber("_amount",t);var n="isTransferAllowed(address,uint256)";return{callAsync:function(){var e,t,s,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,t),u.next=5,c.a.awrap(a._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),t));case 5:return s=u.sent,r=a._lookupAbiEncoder(n),u.abrupt("return",r.strictDecodeReturnValue(s));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return a._strictEncodeArguments(n,[e.toLowerCase(),t])}}}},{key:"getUserIndex",value:function(e){var t=this;b.assert.isString("_user",e);return{callAsync:function(){var e,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,a),o.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=t._lookupAbiEncoder("getUserIndex(address)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments("getUserIndex(address)",[e.toLowerCase()])}}}},{key:"getInterestRedirectionAddress",value:function(e){var t=this;b.assert.isString("_user",e);var a="getInterestRedirectionAddress(address)";return{callAsync:function(){var e,n,s,r,o=arguments;return c.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},n=o.length>1?o[1]:void 0,h.BaseContract._assertCallParams(e,n),u.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),n));case 5:return s=u.sent,r=t._lookupAbiEncoder(a),u.abrupt("return",r.strictDecodeReturnValue(s));case 8:case"end":return u.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments(a,[e.toLowerCase()])}}}},{key:"getRedirectedBalance",value:function(e){var t=this;b.assert.isString("_user",e);return{callAsync:function(){var e,a,n,s,r=arguments;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},a=r.length>1?r[1]:void 0,h.BaseContract._assertCallParams(e,a),o.next=5,c.a.awrap(t._performCallAsync(Object(i.a)({},e,{data:this.getABIEncodedTransactionData()}),a));case 5:return n=o.sent,s=t._lookupAbiEncoder("getRedirectedBalance(address)"),o.abrupt("return",s.strictDecodeReturnValue(n));case 8:case"end":return o.stop()}}),null,this)},getABIEncodedTransactionData:function(){return t._strictEncodeArguments("getRedirectedBalance(address)",[e.toLowerCase()])}}}},{key:"subscribe",value:function(e,a,s){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4?arguments[4]:void 0;b.assert.doesBelongToStringEnum("eventName",e,n),b.assert.doesConformToSchema("indexFilterValues",a,m.schemas.indexFilterValuesSchema),b.assert.isFunction("callback",s);var i=this._subscriptionManager.subscribe(this.address,e,a,t.ABI(),s,r,c);return i}},{key:"unsubscribe",value:function(e){this._subscriptionManager.unsubscribe(e)}},{key:"unsubscribeAll",value:function(){this._subscriptionManager.unsubscribeAll()}},{key:"getLogsAsync",value:function(e,a,s){var r;return c.a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return b.assert.doesBelongToStringEnum("eventName",e,n),b.assert.doesConformToSchema("blockRange",a,m.schemas.blockRangeSchema),b.assert.doesConformToSchema("indexFilterValues",s,m.schemas.indexFilterValuesSchema),i.next=5,c.a.awrap(this._subscriptionManager.getLogsAsync(this.address,e,a,s,t.ABI()));case 5:return r=i.sent,i.abrupt("return",r);case 7:case"end":return i.stop()}}),null,this)}}],[{key:"deployFrom0xArtifactAsync",value:function(e,a,n,s,r,i,o,u,d){var l,p,y,h,A,v,g;return c.a.async((function(c){for(;;)switch(c.prev=c.next){case 0:if(b.assert.doesConformToSchema("txDefaults",n,m.schemas.txDataSchema,[m.schemas.addressSchema,m.schemas.numberSchema,m.schemas.jsNumber]),void 0!==e.compilerOutput){c.next=3;break}throw new Error("Compiler output not found in the artifact file");case 3:if(l=f.providerUtils.standardizeOrThrow(a),p=e.compilerOutput.evm.bytecode.object,y=e.compilerOutput.abi,h={},void 0!==Object.keys(s))for(A=0,v=Object.keys(s);A<v.length;A++)g=v[A],h[g]=s[g].compilerOutput.abi;return c.abrupt("return",t.deployAsync(p,y,l,n,h,r,i,o,u,d));case 9:case"end":return c.stop()}}))}},{key:"deployAsync",value:function(e,a,n,r,o,u,d,l,p,y){var g,_,w,x,T,D,B,E,I,C,O,k;return c.a.async((function(S){for(;;)switch(S.prev=S.next){case 0:return b.assert.isHexString("bytecode",e),b.assert.doesConformToSchema("txDefaults",r,m.schemas.txDataSchema,[m.schemas.addressSchema,m.schemas.numberSchema,m.schemas.jsNumber]),g=f.providerUtils.standardizeOrThrow(n),_=h.BaseContract._lookupConstructorAbi(a),w=h.BaseContract._formatABIDataItemList(_.inputs,[u,d,l,p,y],h.BaseContract._bigNumberToString),x=Object(s.a)(w,5),u=x[0],d=x[1],l=x[2],p=x[3],y=x[4],T=new v.utils.Interface(a),D=T.deployFunction,B=D.encode(e,[u,d,l,p,y]),E=new A.Web3Wrapper(g),S.next=17,c.a.awrap(h.BaseContract._applyDefaultsToContractTxDataAsync(Object(i.a)({data:B},r),E.estimateGasAsync.bind(E)));case 17:return I=S.sent,S.next=20,c.a.awrap(E.sendTransactionAsync(I));case 20:return C=S.sent,f.logUtils.log("transactionHash: ".concat(C)),S.next=24,c.a.awrap(E.awaitTransactionSuccessAsync(C));case 24:return O=S.sent,f.logUtils.log("Atoken successfully deployed at ".concat(O.contractAddress)),(k=new t(O.contractAddress,g,r,o)).constructorArgs=[u,d,l,p,y],S.abrupt("return",k);case 29:case"end":return S.stop()}}))}},{key:"ABI",value:function(){return[{inputs:[{name:"_addressesProvider",type:"address"},{name:"_underlyingAsset",type:"address"},{name:"_underlyingAssetDecimals",type:"uint8"},{name:"_name",type:"string"},{name:"_symbol",type:"string"}],outputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{name:"owner",type:"address",indexed:!0},{name:"spender",type:"address",indexed:!0},{name:"value",type:"uint256",indexed:!1}],name:"Approval",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"_from",type:"address",indexed:!0},{name:"_to",type:"address",indexed:!0},{name:"_value",type:"uint256",indexed:!1},{name:"_fromBalanceIncrease",type:"uint256",indexed:!1},{name:"_toBalanceIncrease",type:"uint256",indexed:!1},{name:"_fromIndex",type:"uint256",indexed:!1},{name:"_toIndex",type:"uint256",indexed:!1}],name:"BalanceTransfer",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"_from",type:"address",indexed:!0},{name:"_value",type:"uint256",indexed:!1},{name:"_fromBalanceIncrease",type:"uint256",indexed:!1},{name:"_fromIndex",type:"uint256",indexed:!1}],name:"BurnOnLiquidation",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"_from",type:"address",indexed:!0},{name:"_to",type:"address",indexed:!0}],name:"InterestRedirectionAllowanceChanged",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"_from",type:"address",indexed:!0},{name:"_to",type:"address",indexed:!0},{name:"_redirectedBalance",type:"uint256",indexed:!1},{name:"_fromBalanceIncrease",type:"uint256",indexed:!1},{name:"_fromIndex",type:"uint256",indexed:!1}],name:"InterestStreamRedirected",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"_from",type:"address",indexed:!0},{name:"_value",type:"uint256",indexed:!1},{name:"_fromBalanceIncrease",type:"uint256",indexed:!1},{name:"_fromIndex",type:"uint256",indexed:!1}],name:"MintOnDeposit",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"_from",type:"address",indexed:!0},{name:"_value",type:"uint256",indexed:!1},{name:"_fromBalanceIncrease",type:"uint256",indexed:!1},{name:"_fromIndex",type:"uint256",indexed:!1}],name:"Redeem",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"_targetAddress",type:"address",indexed:!0},{name:"_targetBalanceIncrease",type:"uint256",indexed:!1},{name:"_targetIndex",type:"uint256",indexed:!1},{name:"_redirectedBalanceAdded",type:"uint256",indexed:!1},{name:"_redirectedBalanceRemoved",type:"uint256",indexed:!1}],name:"RedirectedBalanceUpdated",outputs:[],type:"event"},{anonymous:!1,inputs:[{name:"from",type:"address",indexed:!0},{name:"to",type:"address",indexed:!0},{name:"value",type:"uint256",indexed:!1}],name:"Transfer",outputs:[],type:"event"},{constant:!0,inputs:[],name:"UINT_MAX_VALUE",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"underlyingAssetAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"}],name:"redirectInterestStream",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"}],name:"redirectInterestStreamOf",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"}],name:"allowInterestRedirectionTo",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_amount",type:"uint256"}],name:"redeem",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_account",type:"address"},{name:"_amount",type:"uint256"}],name:"mintOnDeposit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_account",type:"address"},{name:"_value",type:"uint256"}],name:"burnOnLiquidation",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferOnLiquidation",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_user",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_user",type:"address"}],name:"principalBalanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_user",type:"address"},{name:"_amount",type:"uint256"}],name:"isTransferAllowed",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_user",type:"address"}],name:"getUserIndex",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_user",type:"address"}],name:"getInterestRedirectionAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_user",type:"address"}],name:"getRedirectedBalance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}]}}]),t}(h.BaseContract);g.deployedBytecode=void 0,g.contractName="Atoken"}}]);