@gearbox-protocol/ui-kit 4.1.0 → 4.1.1

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../utils/internal/static.cjs"),e=d.getStatic("/tokens/default.svg"),r=d.getStatic("/logo/logo_symbol.png");function u(t){return t.replaceAll("/","").replaceAll(" ","").toLowerCase()}const w={"crvusdfrax-f":"crvusdfrax","crvusdusdc-f":"crvusdusdc","crvusdusdt-f":"crvusdusdt","cvxcrvusdfrax-f":"cvxcrvusdfrax","cvxcrvusdusdc-f":"cvxcrvusdusdc","cvxcrvusdusdt-f":"cvxcrvusdusdt","stkcvxcrvusdfrax-f":"stkcvxcrvusdfrax","stkcvxcrvusdusdc-f":"stkcvxcrvusdusdc","stkcvxcrvusdusdt-f":"stkcvxcrvusdusdt","wdwsteth[cp0xlrt]":"wdwsteth","wdwsteth[pzeth]":"wdwsteth","wdwsteth[re7lrt]":"wdwsteth","wdwsteth[rsteth]":"wdwsteth","wdwsteth[steaklrt]":"wdwsteth",wdiusd:"iusd",wdrseth:"rseth","dwbtc-v3-0":"dwbtcv3","dwethv3-cp0x":"dwethv3",fweth:"weth",fwsteth:"wsteth",kpkfrxusd:"frxusd",kpkweth:"weth",kpkwsteth:"wsteth",stkrlusdusdc:"rlusdusdc",syusd:"yusd",xtz:"wxtz","cyb-cbbtc":"cbbtc","cyb-tbtc":"tbtc","cyb-wbtc":"wbtc",re7tbtc:"tbtc",re7usdc:"usdc"};function v(t){const s=typeof t=="string"?t:t?.symbol;if(!s)return e;if(s==="GEAR")return r;const c=u(s);return c?d.getStatic(`/tokens/${w[c]??c}.svg`):e}exports.getTokenIconUrl=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../utils/internal/static.cjs"),e=d.getStatic("/tokens/default.svg"),r=d.getStatic("/logo/logo_symbol.png");function u(t){return t.replaceAll("/","").replaceAll(" ","").toLowerCase()}const w={"crvusdfrax-f":"crvusdfrax","crvusdusdc-f":"crvusdusdc","crvusdusdt-f":"crvusdusdt","cvxcrvusdfrax-f":"cvxcrvusdfrax","cvxcrvusdusdc-f":"cvxcrvusdusdc","cvxcrvusdusdt-f":"cvxcrvusdusdt","stkcvxcrvusdfrax-f":"stkcvxcrvusdfrax","stkcvxcrvusdusdc-f":"stkcvxcrvusdusdc","stkcvxcrvusdusdt-f":"stkcvxcrvusdusdt","wdwsteth[cp0xlrt]":"wdwsteth","wdwsteth[pzeth]":"wdwsteth","wdwsteth[re7lrt]":"wdwsteth","wdwsteth[rsteth]":"wdwsteth","wdwsteth[steaklrt]":"wdwsteth",wdiusd:"iusd",wdrseth:"rseth","dwbtc-v3-0":"dwbtcv3","dwethv3-cp0x":"dwethv3",fweth:"weth",fwsteth:"wsteth",kpkfrxusd:"frxusd",kpkweth:"weth",kpkwsteth:"wsteth",stkrlusdusdc:"rlusdusdc",syusd:"yusd",xtz:"wxtz","cyb-cbbtc":"cbbtc","cyb-tbtc":"tbtc","cyb-wbtc":"wbtc",re7tbtc:"tbtc",re7usdc:"usdc","acred->usdc":"srpacred_usdc","medge->usdc":"medgerdusdc","mf-one->usdc":"mf-onerdusdc","mf-one->usdcoin":"mf-onerdusdc","stac->usdc":"srpstac_usdc"};function v(t){const s=typeof t=="string"?t:t?.symbol;if(!s)return e;if(s==="GEAR")return r;const c=u(s);return c?d.getStatic(`/tokens/${w[c]??c}.svg`):e}exports.getTokenIconUrl=v;
@@ -41,7 +41,16 @@ const w = {
41
41
  "cyb-tbtc": "tbtc",
42
42
  "cyb-wbtc": "wbtc",
43
43
  re7tbtc: "tbtc",
44
- re7usdc: "usdc"
44
+ re7usdc: "usdc",
45
+ // RWA redemption phantoms. `renameRedemptionPhantoms` rewrites their symbol
46
+ // to `"${source} -> ${target}"` for display, but only once it knows all three
47
+ // addresses — until then the token reports what its contract says, and the
48
+ // asset is stored under that. `USDCoin` shows up where a fork's USDC does.
49
+ "acred->usdc": "srpacred_usdc",
50
+ "medge->usdc": "medgerdusdc",
51
+ "mf-one->usdc": "mf-onerdusdc",
52
+ "mf-one->usdcoin": "mf-onerdusdc",
53
+ "stac->usdc": "srpstac_usdc"
45
54
  };
46
55
  function f(t) {
47
56
  const s = typeof t == "string" ? t : t?.symbol;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",