@aurigami/sdk 1.7.7-dummy → 1.7.9-dummy

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,6 +107,10 @@ export declare type AuTokenWithUnderlying = AuToken & {
107
107
  };
108
108
  export declare type ReferralReward = {
109
109
  campaign: string;
110
+ /**
111
+ * Truncated user address.
112
+ */
113
+ userAddr: string;
110
114
  /**
111
115
  * start timetamp of the referral round
112
116
  */
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.7-dummy",
2
+ "version": "1.7.9-dummy",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -35,6 +35,7 @@ export const referralRewardDummy1: ReferralReward = {
35
35
  isReferrer: false,
36
36
  rewardTokenAmount: dummyTokenAmount,
37
37
  transactionHash: null,
38
+ userAddr: '0x...123',
38
39
  };
39
40
 
40
41
  export const referralRewardDummy2: ReferralReward = {
@@ -44,4 +45,5 @@ export const referralRewardDummy2: ReferralReward = {
44
45
  isReferrer: true,
45
46
  rewardTokenAmount: dummyTokenAmount2,
46
47
  transactionHash: '0x4da9657663b46ef18d150b897b28c7b717f16421978b52e3a06d91b54ca3548b',
48
+ userAddr: '0x...456',
47
49
  };
@@ -251,7 +251,10 @@ export class MoneyMarketRead extends BlockchainEntityRead {
251
251
  var depositMETAApy;
252
252
  if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.stNEAR)) {
253
253
  depositMETAApy = helpers.calcLMRewardApr(
254
- new BigNumber(50000),
254
+ await fetchValuation(
255
+ TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '1250000', false),
256
+ this._networkConnection.provider
257
+ ),
255
258
  underlyingPrice!.multipliedBy(totalDeposited!.formattedAmount()),
256
259
  12
257
260
  );
@@ -124,6 +124,10 @@ export type AuTokenWithUnderlying = AuToken & {
124
124
 
125
125
  export type ReferralReward = {
126
126
  campaign: string;
127
+ /**
128
+ * Truncated user address.
129
+ */
130
+ userAddr: string;
127
131
  /**
128
132
  * start timetamp of the referral round
129
133
  */